Class ForwardingBeanDeploymentArchive
java.lang.Object
org.jboss.weld.bootstrap.spi.helpers.ForwardingBeanDeploymentArchive
- All Implemented Interfaces:
BeanDeploymentArchive
public abstract class ForwardingBeanDeploymentArchive
extends Object
implements BeanDeploymentArchive
- Author:
- pmuir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BeanDeploymentArchivedelegate()Returns the delegatebooleanGets all classes in the bean deployment archive.Get the bean deployment archives which are accessible to this bean deployment archive and adjacent to it in the deployment archive graph.Get any deployment descriptors in the bean deployment archive.getEjbs()Get all the EJBs in the deployment archivegetId()Get a string which uniquely identifies theBeanDeploymentArchivewithin theDeployment.If possible, return all the classes found in the archive.Collection<Class<?>>Get all pre-loaded classes for the bean deployment archive.Get the Bean Deployment Archive scoped servicesinthashCode()toString()
-
Constructor Details
-
ForwardingBeanDeploymentArchive
public ForwardingBeanDeploymentArchive()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
getBeanClasses
Description copied from interface:BeanDeploymentArchiveGets all classes in the bean deployment archive.For an explicit bean archive this method returns a collection of all types present within the archive.
For an implicit bean archive this method returns all the types found in the archive which are annotated with a bean defining annotation or are Session bean definitions.
- Specified by:
getBeanClassesin interfaceBeanDeploymentArchive- Returns:
- the classes, empty if no classes are present
-
getKnownClasses
Description copied from interface:BeanDeploymentArchiveIf possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as forBeanDeploymentArchive.getBeanClasses(). For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor are Session bean definitions.- Specified by:
getKnownClassesin interfaceBeanDeploymentArchive- Returns:
- all classes found in the bean deployment archive, empty if no classes are present
-
getLoadedBeanClasses
Description copied from interface:BeanDeploymentArchiveGet all pre-loaded classes for the bean deployment archive. Weld checks if there is an overlap of FQCNs between the classes returned from this method and class names returned fromBeanDeploymentArchive.getBeanClasses(). If two names overlap the class object returned from this method is used.- Specified by:
getLoadedBeanClassesin interfaceBeanDeploymentArchive- Returns:
- the classes, empty if no pre-loaded classes are available
-
getServices
Description copied from interface:BeanDeploymentArchiveGet the Bean Deployment Archive scoped services- Specified by:
getServicesin interfaceBeanDeploymentArchive- Returns:
- bean deployment archive scoped services
-
getId
Description copied from interface:BeanDeploymentArchiveGet a string which uniquely identifies theBeanDeploymentArchivewithin theDeployment. The identifier must be consistent between multiple occurrences of this deployment.- Specified by:
getIdin interfaceBeanDeploymentArchive- Returns:
- identifier of BeanDeploymentArchive
-
getBeanDeploymentArchives
Description copied from interface:BeanDeploymentArchiveGet the bean deployment archives which are accessible to this bean deployment archive and adjacent to it in the deployment archive graph. Cycles in the accessible BeanDeploymentArchive graph are allowed. If a cycle is detected by Weld, it will be automatically removed by Web Beans. This means any implementor of this interface don't need to worry about circularities.- Specified by:
getBeanDeploymentArchivesin interfaceBeanDeploymentArchive- Returns:
- the accessible bean deployment archives
-
getBeansXml
Description copied from interface:BeanDeploymentArchiveGet any deployment descriptors in the bean deployment archive. The container will return a a merged view of the beans.xml per bean deployment archive. This will normally represent a single file such as the physical META-INF/beans.xml or WEB-INF/beans.xml) The container may choose to parse beans.xml itself, or it may use Weld to parse beans.xml- Specified by:
getBeansXmlin interfaceBeanDeploymentArchive- Returns:
- the parsed beans.xml
- See Also:
-
getEjbs
Description copied from interface:BeanDeploymentArchiveGet all the EJBs in the deployment archive- Specified by:
getEjbsin interfaceBeanDeploymentArchive- Returns:
- the EJBs, or empty if no EJBs are present or if this is not an EJB archive
-
hashCode
public int hashCode() -
equals
-
toString
-