Package org.jboss.weld.ejb
Class EjbDescriptors
- java.lang.Object
-
- org.jboss.weld.ejb.EjbDescriptors
-
- All Implemented Interfaces:
Iterable<InternalEjbDescriptor<?>>,org.jboss.weld.bootstrap.api.Service
public class EjbDescriptors extends Object implements org.jboss.weld.bootstrap.api.Service, Iterable<InternalEjbDescriptor<?>>
EJB descriptors by EJB implementation class or name- Author:
- Pete Muir
-
-
Field Summary
Fields Modifier and Type Field Description static EjbDescriptorsEMPTY
-
Constructor Summary
Constructors Constructor Description EjbDescriptors()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidadd(org.jboss.weld.ejb.spi.EjbDescriptor<T> ejbDescriptor)Adds an EJB descriptor to the mapsvoidaddAll(Iterable<org.jboss.weld.ejb.spi.EjbDescriptor<?>> ejbDescriptors)Adds all EJB descriptors to the mapsvoidcleanup()voidclear()Clears both mapsbooleancontains(Class<?> beanClass)Indicates if there are EJB descriptors available for an EJB implementation classbooleancontains(String beanName)Indicates if there are EJB descriptors available for an EJB implementation class<T> InternalEjbDescriptor<T>get(String beanName)Gets an iterator to the EJB descriptors for an EJB implementation class<T> InternalEjbDescriptor<T>getUnique(Class<T> beanClass)Iterator<InternalEjbDescriptor<?>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final EjbDescriptors EMPTY
-
-
Method Detail
-
get
public <T> InternalEjbDescriptor<T> get(String beanName)
Gets an iterator to the EJB descriptors for an EJB implementation class- Parameters:
beanClass- The EJB class- Returns:
- An iterator
-
add
public <T> void add(org.jboss.weld.ejb.spi.EjbDescriptor<T> ejbDescriptor)
Adds an EJB descriptor to the maps- Parameters:
ejbDescriptor- The EJB descriptor to add
-
contains
public boolean contains(String beanName)
Indicates if there are EJB descriptors available for an EJB implementation class- Parameters:
beanClass- The class to match- Returns:
- True if present, otherwise false
-
contains
public boolean contains(Class<?> beanClass)
Indicates if there are EJB descriptors available for an EJB implementation class- Parameters:
beanClass- The class to match- Returns:
- True if present, otherwise false
-
getUnique
public <T> InternalEjbDescriptor<T> getUnique(Class<T> beanClass)
-
addAll
public void addAll(Iterable<org.jboss.weld.ejb.spi.EjbDescriptor<?>> ejbDescriptors)
Adds all EJB descriptors to the maps- Parameters:
ejbDescriptors- The descriptors to add
-
clear
public void clear()
Clears both maps
-
iterator
public Iterator<InternalEjbDescriptor<?>> iterator()
- Specified by:
iteratorin interfaceIterable<InternalEjbDescriptor<?>>
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
-