org.jboss.ejb3.common.resolvers.spi
Class EjbReferenceResolverBase

java.lang.Object
  extended by org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolverBase
Direct Known Subclasses:
FirstMatchEjbReferenceResolver

public abstract class EjbReferenceResolverBase
extends java.lang.Object

EjbReferenceResolverBase A base upon which EJB Reference Resolvers may build upon. Provides capabilities expected to be required by providers.


Field Summary
static java.lang.String DU_ATTACHMENT_NAME_METADATA
          The attachment name of the metadata within the DU
 
Constructor Summary
EjbReferenceResolverBase()
           
 
Method Summary
protected  java.lang.String getJndiName(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata, java.lang.ClassLoader cl)
          Obtains the resolved JNDI target for the specified reference within the specified metadata
protected  java.lang.String getMatch(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossMetaData metadata, java.lang.ClassLoader cl)
          Returns the session bean within the specified metadata to match the specified reference, otherwise returns null.
protected  org.jboss.metadata.ejb.jboss.JBossMetaData getMetaData(org.jboss.deployers.structure.spi.DeploymentUnit du)
          Obtains the metadata attachment from the specified deployment unit, returning null if not present
protected  boolean isMatch(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData md, java.lang.ClassLoader cl)
          Determines whether the specified session bean is a match for the specified reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DU_ATTACHMENT_NAME_METADATA

public static final java.lang.String DU_ATTACHMENT_NAME_METADATA
The attachment name of the metadata within the DU

Constructor Detail

EjbReferenceResolverBase

public EjbReferenceResolverBase()
Method Detail

getMetaData

protected org.jboss.metadata.ejb.jboss.JBossMetaData getMetaData(org.jboss.deployers.structure.spi.DeploymentUnit du)
Obtains the metadata attachment from the specified deployment unit, returning null if not present

Parameters:
du -
Returns:

getMatch

protected java.lang.String getMatch(EjbReference reference,
                                    org.jboss.metadata.ejb.jboss.JBossMetaData metadata,
                                    java.lang.ClassLoader cl)
                             throws NonDeterministicInterfaceException
Returns the session bean within the specified metadata to match the specified reference, otherwise returns null.

Parameters:
reference -
metadata -
cl - The ClassLoader for the specified metadata
Returns:
Throws:
NonDeterministicInterfaceException

isMatch

protected boolean isMatch(EjbReference reference,
                          org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData md,
                          java.lang.ClassLoader cl)
Determines whether the specified session bean is a match for the specified reference

Parameters:
reference -
md -
cl - The ClassLoader for the specified metadata
Returns:

getJndiName

protected java.lang.String getJndiName(EjbReference reference,
                                       org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata,
                                       java.lang.ClassLoader cl)
Obtains the resolved JNDI target for the specified reference within the specified metadata

Parameters:
reference -
metadata -
cl -
Returns: