public final class ASHelper extends Object
Modifier and Type | Method and Description |
---|---|
static List<org.jboss.jandex.AnnotationInstance> |
getAnnotations(DeploymentUnit unit,
org.jboss.jandex.DotName annotation) |
static String |
getContextRoot(org.jboss.wsf.spi.deployment.Deployment dep,
org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMD)
Returns context root associated with webservice deployment.
|
static String |
getEndpointClassName(org.jboss.metadata.web.spec.ServletMetaData servletMD)
Returns endpoint class name.
|
static String |
getEndpointName(org.jboss.metadata.web.spec.ServletMetaData servletMD)
Returns endpoint name.
|
static JAXRPCDeployment |
getJaxrpcDeployment(DeploymentUnit unit) |
static List<EJBEndpoint> |
getJaxrpcEjbs(DeploymentUnit unit)
Gets list of JAXRPC EJBs meta data.
|
static List<POJOEndpoint> |
getJaxrpcPojos(DeploymentUnit unit)
Gets list of JAXRPC POJOs meta data.
|
static JAXWSDeployment |
getJaxwsDeployment(DeploymentUnit unit) |
static List<EJBEndpoint> |
getJaxwsEjbs(DeploymentUnit unit)
Gets list of JAXWS EJBs meta data.
|
static List<POJOEndpoint> |
getJaxwsPojos(DeploymentUnit unit)
Gets list of JAXWS POJOs meta data.
|
static org.jboss.metadata.web.jboss.JBossWebMetaData |
getJBossWebMetaData(DeploymentUnit unit)
Gets the JBossWebMetaData from the WarMetaData attached to the provided deployment unit, if any.
|
static <T> T |
getMSCService(org.jboss.msc.service.ServiceName serviceName,
Class<T> clazz) |
static <A> A |
getOptionalAttachment(DeploymentUnit unit,
AttachmentKey<A> key)
Returns optional attachment value from deployment unit or null if not bound.
|
static <A> A |
getRequiredAttachment(DeploymentUnit unit,
AttachmentKey<A> key)
Returns required attachment value from deployment unit.
|
static org.jboss.metadata.web.spec.ServletMetaData |
getServletForName(org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMD,
String servletName)
Returns servlet meta data for requested servlet name.
|
static WSReferences |
getWSRefRegistry(DeploymentUnit unit) |
static boolean |
isJaxwsService(org.jboss.jandex.ClassInfo current,
CompositeIndex index) |
static boolean |
isJaxwsService(org.jboss.jandex.ClassInfo current,
org.jboss.jandex.Index index) |
public static List<EJBEndpoint> getJaxwsEjbs(DeploymentUnit unit)
unit
- deployment unitpublic static List<EJBEndpoint> getJaxrpcEjbs(DeploymentUnit unit)
unit
- deployment unitpublic static List<POJOEndpoint> getJaxwsPojos(DeploymentUnit unit)
unit
- deployment unitpublic static List<POJOEndpoint> getJaxrpcPojos(DeploymentUnit unit)
unit
- deployment unitpublic static String getEndpointName(org.jboss.metadata.web.spec.ServletMetaData servletMD)
servletMD
- servlet meta datapublic static String getEndpointClassName(org.jboss.metadata.web.spec.ServletMetaData servletMD)
servletMD
- servlet meta datapublic static org.jboss.metadata.web.spec.ServletMetaData getServletForName(org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMD, String servletName)
jbossWebMD
- jboss web meta dataservletName
- servlet namepublic static <A> A getRequiredAttachment(DeploymentUnit unit, AttachmentKey<A> key)
A
- expected valueunit
- deployment unitkey
- attachment keyIllegalStateException
- if attachment value is nullpublic static <A> A getOptionalAttachment(DeploymentUnit unit, AttachmentKey<A> key)
A
- expected valueunit
- deployment unitkey
- attachment keypublic static boolean isJaxwsService(org.jboss.jandex.ClassInfo current, CompositeIndex index)
public static boolean isJaxwsService(org.jboss.jandex.ClassInfo current, org.jboss.jandex.Index index)
public static org.jboss.metadata.web.jboss.JBossWebMetaData getJBossWebMetaData(DeploymentUnit unit)
unit
- public static List<org.jboss.jandex.AnnotationInstance> getAnnotations(DeploymentUnit unit, org.jboss.jandex.DotName annotation)
public static JAXWSDeployment getJaxwsDeployment(DeploymentUnit unit)
public static JAXRPCDeployment getJaxrpcDeployment(DeploymentUnit unit)
public static WSReferences getWSRefRegistry(DeploymentUnit unit)
public static String getContextRoot(org.jboss.wsf.spi.deployment.Deployment dep, org.jboss.metadata.web.jboss.JBossWebMetaData jbossWebMD)
dep
- webservice deploymentjbossWebMD
- jboss web meta datapublic static <T> T getMSCService(org.jboss.msc.service.ServiceName serviceName, Class<T> clazz)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.