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 aBeanDeploymentArchiveform 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 voidaddBeanClass(String beanClassName)WeldUtils.BDATypegetBDAType()Gets the Bean Deployment Archive typeCollection<String>getBeanClasses()Collection<Class<?>>getBeanClassObjects()Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>getBeanDeploymentArchives()org.jboss.weld.bootstrap.spi.BeansXmlgetBeansXml()org.jboss.weld.ejb.spi.EjbDescriptorgetEjbDescriptor(String ejbName)Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>>getEjbs()Gets a descriptor for each EJBStringgetFriendlyId()StringgetId()jakarta.enterprise.inject.spi.InjectionTarget<?>getInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType<?> annotatedType)Collection<String>getKnownClasses()Collection<Class<?>>getLoadedBeanClasses()Collection<String>getModuleBeanClasses()Collection<Class<?>>getModuleBeanClassObjects()ClassLoadergetModuleClassLoaderForBDA()org.jboss.weld.bootstrap.api.ServiceRegistrygetServices()booleanisDeploymentComplete()protected org.jboss.weld.bootstrap.spi.BeansXmlparseBeansXML(ReadableArchive archive, String beansXMLPath)voidsetDeploymentComplete(boolean deploymentComplete)StringtoString()
-
-
-
Constructor Detail
-
BeanDeploymentArchiveImpl
public BeanDeploymentArchiveImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext ctx)
Produce aBeanDeploymentArchiveform 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:
getBeanDeploymentArchivesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeanClasses
public Collection<String> getBeanClasses()
- Specified by:
getBeanClassesin 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:
getBeansXmlin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getEjbs
public Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
Gets a descriptor for each EJB- Specified by:
getEjbsin 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:
getServicesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getFriendlyId
public String getFriendlyId()
-
getKnownClasses
public Collection<String> getKnownClasses()
- Specified by:
getKnownClassesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getLoadedBeanClasses
public Collection<Class<?>> getLoadedBeanClasses()
- Specified by:
getLoadedBeanClassesin 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)
-
-