Package org.glassfish.weld
Class BeanDeploymentArchiveImpl
- java.lang.Object
-
- org.glassfish.weld.BeanDeploymentArchiveImpl
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Direct Known Subclasses:
RootBeanDeploymentArchive
public class BeanDeploymentArchiveImpl extends Object implements org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
-
Constructor Summary
Constructors Constructor Description BeanDeploymentArchiveImpl(String id, List<Class<?>> wClasses, List<URL> beansXmlUrls, Collection<EjbDescriptor> ejbs, DeploymentContext ctx)
These are for empty BDAs that do not model Bean classes in the current //deployment unit -- for example: BDAs for portable Extensions.BeanDeploymentArchiveImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext ctx)
Produce aBeanDeploymentArchive
form information contained in the providedReadableArchive
.BeanDeploymentArchiveImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext ctx, String bdaID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeanClass(String beanClassName)
WeldUtils.BDAType
getBDAType()
Gets the Bean Deployment Archive typeCollection<String>
getBeanClasses()
Collection<Class<?>>
getBeanClassObjects()
Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>
getBeanDeploymentArchives()
org.jboss.weld.bootstrap.spi.BeansXml
getBeansXml()
org.jboss.weld.ejb.spi.EjbDescriptor
getEjbDescriptor(String ejbName)
Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>>
getEjbs()
Gets a descriptor for each EJBString
getFriendlyId()
String
getId()
jakarta.enterprise.inject.spi.InjectionTarget<?>
getInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType<?> annotatedType)
Collection<String>
getKnownClasses()
Collection<Class<?>>
getLoadedBeanClasses()
Collection<String>
getModuleBeanClasses()
Collection<Class<?>>
getModuleBeanClassObjects()
ClassLoader
getModuleClassLoaderForBDA()
org.jboss.weld.bootstrap.api.ServiceRegistry
getServices()
boolean
isDeploymentComplete()
protected org.jboss.weld.bootstrap.spi.BeansXml
parseBeansXML(ReadableArchive archive, String beansXMLPath)
void
setDeploymentComplete(boolean deploymentComplete)
String
toString()
-
-
-
Constructor Detail
-
BeanDeploymentArchiveImpl
public BeanDeploymentArchiveImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext ctx)
Produce aBeanDeploymentArchive
form information contained in the providedReadableArchive
.- Parameters:
archive
-ejbs
-ctx
-
-
BeanDeploymentArchiveImpl
public BeanDeploymentArchiveImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext ctx, String bdaID)
-
BeanDeploymentArchiveImpl
public BeanDeploymentArchiveImpl(String id, List<Class<?>> wClasses, List<URL> beansXmlUrls, Collection<EjbDescriptor> ejbs, DeploymentContext ctx)
These are for empty BDAs that do not model Bean classes in the current //deployment unit -- for example: BDAs for portable Extensions.
-
-
Method Detail
-
getBeanDeploymentArchives
public Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
- Specified by:
getBeanDeploymentArchives
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeanClasses
public Collection<String> getBeanClasses()
- Specified by:
getBeanClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeanClassObjects
public Collection<Class<?>> getBeanClassObjects()
-
getModuleBeanClasses
public Collection<String> getModuleBeanClasses()
-
getModuleBeanClassObjects
public Collection<Class<?>> getModuleBeanClassObjects()
-
addBeanClass
public void addBeanClass(String beanClassName)
-
getBeansXml
public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()
- Specified by:
getBeansXml
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getEjbs
public Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
Gets a descriptor for each EJB- Specified by:
getEjbs
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Returns:
- the EJB descriptors
-
getEjbDescriptor
public org.jboss.weld.ejb.spi.EjbDescriptor getEjbDescriptor(String ejbName)
-
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
- Specified by:
getServices
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getFriendlyId
public String getFriendlyId()
-
getKnownClasses
public Collection<String> getKnownClasses()
- Specified by:
getKnownClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getLoadedBeanClasses
public Collection<Class<?>> getLoadedBeanClasses()
- Specified by:
getLoadedBeanClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBDAType
public WeldUtils.BDAType getBDAType()
Gets the Bean Deployment Archive type- Returns:
- WAR, RAR, JAR or UNKNOWN
-
getInjectionTarget
public jakarta.enterprise.inject.spi.InjectionTarget<?> getInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType<?> annotatedType)
-
getModuleClassLoaderForBDA
public ClassLoader getModuleClassLoaderForBDA()
-
parseBeansXML
protected org.jboss.weld.bootstrap.spi.BeansXml parseBeansXML(ReadableArchive archive, String beansXMLPath) throws IOException
- Throws:
IOException
-
isDeploymentComplete
public boolean isDeploymentComplete()
-
setDeploymentComplete
public void setDeploymentComplete(boolean deploymentComplete)
-
-