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 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 <T> T |
getMSCService(org.jboss.msc.service.ServiceName serviceName,
Class<T> clazz,
OperationContext context) |
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 WSRefRegistry |
getWSRefRegistry(DeploymentUnit unit) |
static boolean |
hasClassesFromPackage(org.jboss.jandex.Index index,
String pck) |
static boolean |
isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz,
CompositeIndex index) |
static boolean |
isJaxwsEndpoint(EEModuleClassDescription classDescription,
CompositeIndex index) |
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<POJOEndpoint> getJaxwsPojos(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 boolean hasClassesFromPackage(org.jboss.jandex.Index index, String pck)
public static boolean isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz, CompositeIndex index)
public static boolean isJaxwsEndpoint(EEModuleClassDescription classDescription, CompositeIndex 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 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)
public static <T> T getMSCService(org.jboss.msc.service.ServiceName serviceName, Class<T> clazz, OperationContext context)
public static WSRefRegistry getWSRefRegistry(DeploymentUnit unit)
Copyright © 2015 JBoss by Red Hat. All rights reserved.