org.jboss.webbeans.ejb
Class EjbDescriptorCache

java.lang.Object
  extended by org.jboss.webbeans.ejb.EjbDescriptorCache
All Implemented Interfaces:
java.io.Serializable

public class EjbDescriptorCache
extends java.lang.Object
implements java.io.Serializable

EJB descriptors by EJB implementation class or name

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
EjbDescriptorCache()
          Constructor
 
Method Summary
 void add(EjbDescriptor<?> ejbDescriptor)
          Adds an EJB descriptor to the maps
 void addAll(java.lang.Iterable<EjbDescriptor<?>> ejbDescriptors)
          Adds all EJB descriptors to the maps
 void clear()
           
 boolean containsKey(java.lang.Class<?> beanClass)
          Indicates if there are EJB descriptors available for an EJB implementation class
 boolean containsKey(java.lang.String ejbName)
          Indicates if there are EJB descriptors available for an EJB name
<T> java.lang.Iterable<EjbDescriptor<T>>
get(java.lang.Class<T> beanClass)
          Gets an iterator to the EJB descriptors for an EJB implementation class
 EjbDescriptor<?> get(java.lang.String ejbName)
          Gets the EJB descriptor for a given name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbDescriptorCache

public EjbDescriptorCache()
Constructor

Method Detail

get

public EjbDescriptor<?> get(java.lang.String ejbName)
Gets the EJB descriptor for a given name

Parameters:
ejbName - The EJB name
Returns:
The EJB descriptor

get

public <T> java.lang.Iterable<EjbDescriptor<T>> get(java.lang.Class<T> beanClass)
Gets an iterator to the EJB descriptors for an EJB implementation class

Parameters:
beanClass - The EJB class
Returns:
An iterator

add

public void add(EjbDescriptor<?> ejbDescriptor)
Adds an EJB descriptor to the maps

Parameters:
ejbDescriptor - The EJB descriptor to add

containsKey

public boolean containsKey(java.lang.String ejbName)
Indicates if there are EJB descriptors available for an EJB name

Parameters:
ejbName - The EJB name to match
Returns:
True if present, otherwise false

containsKey

public boolean containsKey(java.lang.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

addAll

public void addAll(java.lang.Iterable<EjbDescriptor<?>> ejbDescriptors)
Adds all EJB descriptors to the maps

Parameters:
ejbDescriptors - The descriptors to add

clear

public void clear()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.