org.jboss.metadata.ejb.jboss.jndipolicy.spi
Class JbossSessionBeanJndiNameResolver

java.lang.Object
  extended by org.jboss.metadata.ejb.jboss.jndipolicy.spi.JbossEnterpriseBeanJndiNameResolver
      extended by org.jboss.metadata.ejb.jboss.jndipolicy.spi.JbossSessionBeanJndiNameResolver

public class JbossSessionBeanJndiNameResolver
extends JbossEnterpriseBeanJndiNameResolver

JbossSessionBeanJndiNameResolver Utility class to resolve target JNDI Names for Session Bean Metadata instances

Version:
$Revision: $
Author:
ALR

Constructor Summary
JbossSessionBeanJndiNameResolver()
           
 
Method Summary
protected static ResolveableJndiNameJbossSessionBeanMetadata ensureResolvable(JBossSessionBeanMetaData md)
          Ensures that the specified Metadata is able to resolve JNDI Names and returns the casted type if so.
static String resolveLocalBusinessDefaultJndiName(JBossSessionBeanMetaData md)
          Returns the resolved JNDI target to which the default EJB3.x Local Business interfaces are to be bound
static String resolveLocalHomeJndiName(JBossSessionBeanMetaData md)
          Returns the resolved JNDI target to which the EJB2.x Local Home interface is to be bound
static String resolveRemoteBusinessDefaultJndiName(JBossSessionBeanMetaData md)
          Returns the resolved JNDI target to which the default EJB3.x Remote Business interfaces are to be bound
static String resolveRemoteHomeJndiName(JBossSessionBeanMetaData md)
          Returns the resolved JNDI target to which the EJB2.x Remote Home interface is to be bound
 
Methods inherited from class org.jboss.metadata.ejb.jboss.jndipolicy.spi.JbossEnterpriseBeanJndiNameResolver
ensureResolvable, resolveJndiName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbossSessionBeanJndiNameResolver

public JbossSessionBeanJndiNameResolver()
Method Detail

resolveRemoteHomeJndiName

public static String resolveRemoteHomeJndiName(JBossSessionBeanMetaData md)
Returns the resolved JNDI target to which the EJB2.x Remote Home interface is to be bound

Returns:

resolveLocalHomeJndiName

public static String resolveLocalHomeJndiName(JBossSessionBeanMetaData md)
Returns the resolved JNDI target to which the EJB2.x Local Home interface is to be bound

Returns:

resolveRemoteBusinessDefaultJndiName

public static String resolveRemoteBusinessDefaultJndiName(JBossSessionBeanMetaData md)
Returns the resolved JNDI target to which the default EJB3.x Remote Business interfaces are to be bound

Returns:

resolveLocalBusinessDefaultJndiName

public static String resolveLocalBusinessDefaultJndiName(JBossSessionBeanMetaData md)
Returns the resolved JNDI target to which the default EJB3.x Local Business interfaces are to be bound

Returns:

ensureResolvable

protected static ResolveableJndiNameJbossSessionBeanMetadata ensureResolvable(JBossSessionBeanMetaData md)
Ensures that the specified Metadata is able to resolve JNDI Names and returns the casted type if so. Otherwise a runtime error will be raised (by assertion failure if enabled or IllegalArgumentException if not)

Parameters:
md -
Returns:


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