org.jboss.weld.environment.se.discovery
Class SEBeanDeploymentArchive
java.lang.Object
org.jboss.weld.environment.se.discovery.SEBeanDeploymentArchive
- All Implemented Interfaces:
- org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
public class SEBeanDeploymentArchive
- extends java.lang.Object
- implements org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
A Java SE implementation of BeanDeploymentArchive. It is essentially an
adaptor from the SEWeldDiscovery to the BeanDeploymentArchive interface.
It returns, in a single logical archive, all Bean classes and beans.xml
descriptors. It always returns an empty collection of EJBs.
- Author:
- Peter Royle
|
Method Summary |
java.util.Collection<java.lang.Class<?>> |
getBeanClasses()
|
java.util.List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> |
getBeanDeploymentArchives()
|
java.util.Collection<java.net.URL> |
getBeansXml()
|
java.util.Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> |
getEjbs()
|
java.lang.String |
getId()
|
org.jboss.weld.bootstrap.api.ServiceRegistry |
getServices()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEBeanDeploymentArchive
public SEBeanDeploymentArchive()
getBeanClasses
public java.util.Collection<java.lang.Class<?>> getBeanClasses()
- Specified by:
getBeanClasses in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Returns:
- a collection of all Bean classes on the classpath.
getBeanDeploymentArchives
public java.util.List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
- Specified by:
getBeanDeploymentArchives in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Returns:
- an empty collection, since this instance is the only logical
archive for the current SE classloader.
getBeansXml
public java.util.Collection<java.net.URL> getBeansXml()
- Specified by:
getBeansXml in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Returns:
- all beans.xml decriptors found on the classpath.
getEjbs
public java.util.Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
- Specified by:
getEjbs in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Returns:
- an empty collection since there are no EJBs in Java SE.
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
- Specified by:
getServices in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
getId
public java.lang.String getId()
- Specified by:
getId in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
Copyright © 2008-2009 Seam Framework. All Rights Reserved.