public class EjbDescriptors extends Object implements Service, Iterable<InternalEjbDescriptor<?>>
| Modifier and Type | Field and Description |
|---|---|
static EjbDescriptors |
EMPTY |
| Constructor and Description |
|---|
EjbDescriptors()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
add(EjbDescriptor<T> ejbDescriptor)
Adds an EJB descriptor to the maps
|
void |
addAll(Iterable<EjbDescriptor<?>> ejbDescriptors)
Adds all EJB descriptors to the maps
|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
void |
clear()
Clears both maps
|
boolean |
contains(Class<?> beanClass)
Indicates if there are EJB descriptors available for an EJB implementation
class
|
boolean |
contains(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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final EjbDescriptors EMPTY
public <T> InternalEjbDescriptor<T> get(String beanName)
beanClass - The EJB classpublic <T> void add(EjbDescriptor<T> ejbDescriptor)
ejbDescriptor - The EJB descriptor to addpublic boolean contains(String beanName)
beanClass - The class to matchpublic boolean contains(Class<?> beanClass)
beanClass - The class to matchpublic <T> InternalEjbDescriptor<T> getUnique(Class<T> beanClass)
public void addAll(Iterable<EjbDescriptor<?>> ejbDescriptors)
ejbDescriptors - The descriptors to addpublic void clear()
public Iterator<InternalEjbDescriptor<?>> iterator()
iterator in interface Iterable<InternalEjbDescriptor<?>>Copyright © 2016. All Rights Reserved.