public final class ASHelper extends Object
Modifier and Type | Method and Description |
---|---|
static List<org.jboss.jandex.AnnotationInstance> |
getAnnotations(org.jboss.as.server.deployment.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(org.jboss.as.server.deployment.DeploymentUnit unit) |
static List<EJBEndpoint> |
getJaxwsEjbs(org.jboss.as.server.deployment.DeploymentUnit unit)
Gets list of JAXWS EJBs meta data.
|
static List<POJOEndpoint> |
getJaxwsPojos(org.jboss.as.server.deployment.DeploymentUnit unit)
Gets list of JAXWS POJOs meta data.
|
static org.jboss.metadata.web.jboss.JBossWebMetaData |
getJBossWebMetaData(org.jboss.as.server.deployment.DeploymentUnit unit)
Gets the JBossWebMetaData from the WarMetaData attached to the provided deployment unit, if any.
|
static org.jboss.wsf.spi.metadata.webservices.JBossPortComponentMetaData |
getJBossWebserviceMetaDataPortComponent(org.jboss.as.server.deployment.DeploymentUnit unit,
String name)
Return a named port-component from the jboss-webservices.xml
|
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,
org.jboss.as.controller.OperationContext context) |
static <A> A |
getOptionalAttachment(org.jboss.as.server.deployment.DeploymentUnit unit,
org.jboss.as.server.deployment.AttachmentKey<A> key)
Returns optional attachment value from deployment unit or null if not bound.
|
static <A> A |
getRequiredAttachment(org.jboss.as.server.deployment.DeploymentUnit unit,
org.jboss.as.server.deployment.AttachmentKey<A> key)
Returns required attachment value from deployment unit.
|
static List<org.jboss.as.server.deployment.module.ResourceRoot> |
getResourceRoots(org.jboss.as.server.deployment.DeploymentUnit 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 EJBEndpoint |
getWebserviceMetadataEJBEndpoint(JAXWSDeployment jaxwsDeployment,
String className)
Returns an EJBEndpoint based upon fully qualified classname.
|
static WSRefRegistry |
getWSRefRegistry(org.jboss.as.server.deployment.DeploymentUnit unit) |
static boolean |
hasClassesFromPackage(org.jboss.jandex.Index index,
String pck) |
static boolean |
isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz,
org.jboss.as.server.deployment.annotation.CompositeIndex index) |
static boolean |
isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz,
org.jboss.as.server.deployment.annotation.CompositeIndex index,
boolean log) |
static boolean |
isJaxwsEndpoint(EEModuleClassDescription classDescription,
org.jboss.as.server.deployment.annotation.CompositeIndex index) |
static boolean |
isJaxwsEndpointInterface(org.jboss.jandex.ClassInfo clazz) |
static boolean |
isJaxwsService(org.jboss.jandex.ClassInfo current,
org.jboss.as.server.deployment.annotation.CompositeIndex index) |
static boolean |
isJaxwsService(org.jboss.jandex.ClassInfo current,
org.jboss.jandex.Index index) |
public static List<EJBEndpoint> getJaxwsEjbs(org.jboss.as.server.deployment.DeploymentUnit unit)
unit
- deployment unitpublic static List<POJOEndpoint> getJaxwsPojos(org.jboss.as.server.deployment.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(org.jboss.as.server.deployment.DeploymentUnit unit, org.jboss.as.server.deployment.AttachmentKey<A> key)
A
- expected valueunit
- deployment unitkey
- attachment keyIllegalStateException
- if attachment value is nullpublic static <A> A getOptionalAttachment(org.jboss.as.server.deployment.DeploymentUnit unit, org.jboss.as.server.deployment.AttachmentKey<A> key)
A
- expected valueunit
- deployment unitkey
- attachment keypublic static boolean isJaxwsService(org.jboss.jandex.ClassInfo current, org.jboss.as.server.deployment.annotation.CompositeIndex index)
public static boolean isJaxwsService(org.jboss.jandex.ClassInfo current, org.jboss.jandex.Index index)
public static boolean isJaxwsEndpointInterface(org.jboss.jandex.ClassInfo clazz)
public static boolean hasClassesFromPackage(org.jboss.jandex.Index index, String pck)
public static boolean isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz, org.jboss.as.server.deployment.annotation.CompositeIndex index)
public static boolean isJaxwsEndpoint(org.jboss.jandex.ClassInfo clazz, org.jboss.as.server.deployment.annotation.CompositeIndex index, boolean log)
public static boolean isJaxwsEndpoint(EEModuleClassDescription classDescription, org.jboss.as.server.deployment.annotation.CompositeIndex index)
public static org.jboss.metadata.web.jboss.JBossWebMetaData getJBossWebMetaData(org.jboss.as.server.deployment.DeploymentUnit unit)
unit
- public static List<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.as.server.deployment.DeploymentUnit unit, org.jboss.jandex.DotName annotation)
public static JAXWSDeployment getJaxwsDeployment(org.jboss.as.server.deployment.DeploymentUnit unit)
public static org.jboss.wsf.spi.metadata.webservices.JBossPortComponentMetaData getJBossWebserviceMetaDataPortComponent(org.jboss.as.server.deployment.DeploymentUnit unit, String name)
unit
- name
- public static EJBEndpoint getWebserviceMetadataEJBEndpoint(JAXWSDeployment jaxwsDeployment, String className)
jaxwsDeployment
- className
- 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, org.jboss.as.controller.OperationContext context)
public static WSRefRegistry getWSRefRegistry(org.jboss.as.server.deployment.DeploymentUnit unit)
public static List<org.jboss.as.server.deployment.module.ResourceRoot> getResourceRoots(org.jboss.as.server.deployment.DeploymentUnit unit)
Copyright © 2016 JBoss by Red Hat. All rights reserved.