org.jboss.ejb
Class EjbUtil50

java.lang.Object
  extended by org.jboss.ejb.EjbUtil50

public final class EjbUtil50
extends Object

Utility methods for resolving ejb-ref and ejb-local-ref within the scope of a deployment.

Version:
$Revision: 85945 $
Author:
Christian Riege, Scott.Stark@jboss.org, Thomas.Diesler@jboss.org

Constructor Summary
EjbUtil50()
           
 
Method Summary
static String findEjbLink(org.jboss.deployers.structure.spi.main.MainDeployerStructure server, org.jboss.deployers.structure.spi.DeploymentUnit unit, String link)
          Resolves an <ejb-link> target for an <ejb-ref> entry and returns the name of the target in the JNDI tree.
static String findLocalEjbLink(org.jboss.deployers.structure.spi.main.MainDeployerStructure server, org.jboss.deployers.structure.spi.DeploymentUnit unit, String link)
          Resolves an <ejb-link> target for an <ejb-local-ref> entry and returns the name of the target in the JNDI tree.
static org.jboss.metadata.javaee.spec.MessageDestinationMetaData findMessageDestination(org.jboss.deployers.structure.spi.main.MainDeployerStructure server, org.jboss.deployers.structure.spi.DeploymentUnit di, String link)
          Resolves a <message-destination> target for a <message-destination-link> entry and returns the name of the target in the JNDI tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbUtil50

public EjbUtil50()
Method Detail

findEjbLink

public static String findEjbLink(org.jboss.deployers.structure.spi.main.MainDeployerStructure server,
                                 org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                 String link)
Resolves an <ejb-link> target for an <ejb-ref> entry and returns the name of the target in the JNDI tree.

Parameters:
server - the main deployer
unit - DeploymentUnit
link - Content of the <ejb-link> entry.
Returns:
The JNDI Entry of the target bean; null if no appropriate target could be found.

findLocalEjbLink

public static String findLocalEjbLink(org.jboss.deployers.structure.spi.main.MainDeployerStructure server,
                                      org.jboss.deployers.structure.spi.DeploymentUnit unit,
                                      String link)
Resolves an <ejb-link> target for an <ejb-local-ref> entry and returns the name of the target in the JNDI tree.

Parameters:
server - the main deployer
unit - DeploymentUnit
link - Content of the <ejb-link> entry.
Returns:
The JNDI Entry of the target bean; null if no appropriate target could be found.

findMessageDestination

public static org.jboss.metadata.javaee.spec.MessageDestinationMetaData findMessageDestination(org.jboss.deployers.structure.spi.main.MainDeployerStructure server,
                                                                                               org.jboss.deployers.structure.spi.DeploymentUnit di,
                                                                                               String link)
Resolves a <message-destination> target for a <message-destination-link> entry and returns the name of the target in the JNDI tree.

Parameters:
server - the main deployer
di - DeploymentUnit
link - Content of the <message-driven-link> entry.
Returns:
The JNDI Entry of the target; null if no appropriate target could be found.


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