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 Object

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

Version:
$Revision: $
Author:
ALR

Field Summary
static String DU_ATTACHMENT_NAME_METADATA
          The attachment name of the metadata within the DU
 
Constructor Summary
EjbReferenceResolverBase()
           
 
Method Summary
protected  String getJndiName(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata, ClassLoader cl)
          Obtains the resolved JNDI target for the specified reference within the specified metadata
protected  String getMatch(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossMetaData metadata, 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  org.jboss.deployers.structure.spi.DeploymentUnit getRoot(org.jboss.deployers.structure.spi.DeploymentUnit du)
          Obtains the root deployment unit
protected  boolean isMatch(EjbReference reference, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData md, 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 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 String getMatch(EjbReference reference,
                          org.jboss.metadata.ejb.jboss.JBossMetaData metadata,
                          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,
                          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 String getJndiName(EjbReference reference,
                             org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata,
                             ClassLoader cl)
Obtains the resolved JNDI target for the specified reference within the specified metadata

Parameters:
reference -
metadata -
cl -
Returns:

getRoot

protected org.jboss.deployers.structure.spi.DeploymentUnit getRoot(org.jboss.deployers.structure.spi.DeploymentUnit du)
Obtains the root deployment unit

Parameters:
du -
Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.