org.jboss.weld.ejb
Class EjbDescriptors

java.lang.Object
  extended by 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
static EjbDescriptors EMPTY
           
 
Constructor Summary
EjbDescriptors()
          Constructor
 
Method Summary
<T> void
add(org.jboss.weld.ejb.spi.EjbDescriptor<T> ejbDescriptor)
          Adds an EJB descriptor to the maps
 void addAll(Iterable<org.jboss.weld.ejb.spi.EjbDescriptor<?>> ejbDescriptors)
          Adds all EJB descriptors to the maps
 void cleanup()
           
 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
 InternalEjbDescriptor<?> getUnique(Class<?> beanClass)
           
 Iterator<InternalEjbDescriptor<?>> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final EjbDescriptors EMPTY
Constructor Detail

EjbDescriptors

public EjbDescriptors()
Constructor

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 InternalEjbDescriptor<?> getUnique(Class<?> 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:
iterator in interface Iterable<InternalEjbDescriptor<?>>

cleanup

public void cleanup()
Specified by:
cleanup in interface org.jboss.weld.bootstrap.api.Service


Copyright © 2013 Seam Framework. All Rights Reserved.