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

java.lang.Object
  extended by org.jboss.metadata.ejb.jboss.jndipolicy.spi.JbossEnterpriseBeanJndiNameResolver
Direct Known Subclasses:
JbossSessionBeanJndiNameResolver

public class JbossEnterpriseBeanJndiNameResolver
extends Object

JbossEnterpriseBeanJndiNameResolver Utility class to resolve target JNDI Names for Enterprise Bean Metadata instances

Version:
$Revision: $
Author:
ALR

Constructor Summary
JbossEnterpriseBeanJndiNameResolver()
           
 
Method Summary
protected static ResolveableJndiNameJbossEnterpriseBeanMetadata ensureResolvable(JBossEnterpriseBeanMetaData md)
          Ensures that the specified Metadata is able to resolve JNDI Names and returns the casted type if so.
static String resolveJndiName(JBossEnterpriseBeanMetaData md, String iface)
          Resolves the JNDI Name for the specified target interface on the specified metadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbossEnterpriseBeanJndiNameResolver

public JbossEnterpriseBeanJndiNameResolver()
Method Detail

resolveJndiName

public static String resolveJndiName(JBossEnterpriseBeanMetaData md,
                                     String iface)
Resolves the JNDI Name for the specified target interface on the specified metadata

Parameters:
md -
iface -
Returns:

ensureResolvable

protected static ResolveableJndiNameJbossEnterpriseBeanMetadata ensureResolvable(JBossEnterpriseBeanMetaData 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.