org.jboss.metadata.ejb.jboss.jndipolicy.plugins
Class BasicJndiBindingPolicy

java.lang.Object
  extended by org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy
All Implemented Interfaces:
Serializable, DefaultJndiBindingPolicy

public class BasicJndiBindingPolicy
extends Object
implements DefaultJndiBindingPolicy

A basic implementation of DefaultJndiBindingPolicy that uses a base jndi name and generates the following from that: getDefaultLocalHomeJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL_HOME getDefaultLocalJndiName : baseJndiName + "/" + KnownInterfaces.LOCAL getDefaultRemoteHomeJndiName : baseJndiName + "/" + KnownInterfaces.HOME getDefaultRemoteJndiName : baseJndiName + "/" + KnownInterfaces.REMOTE getJndiName : baseJndiName getJndiName(String iface) : baseJndiName + "/" + iface (if iface is not in KnownInterfaces)

Version:
$Revision:$
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
BasicJndiBindingPolicy()
           
 
Method Summary
 String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
           
 String getDefaultLocalJndiName(EjbDeploymentSummary summary)
           
 String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
           
 String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
           
 String getJndiName(EjbDeploymentSummary summary)
          Returns the JNDI name that should be assigned to this deployment based on the information contained in the specified summary
 String getJndiName(EjbDeploymentSummary summary, String iface, KnownInterfaces.KnownInterfaceType ifaceType)
          Get the jndi name to use as the reference link target and proxy binding location for a given ejb interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicJndiBindingPolicy

public BasicJndiBindingPolicy()
Method Detail

getDefaultLocalHomeJndiName

public String getDefaultLocalHomeJndiName(EjbDeploymentSummary summary)
Specified by:
getDefaultLocalHomeJndiName in interface DefaultJndiBindingPolicy

getDefaultLocalJndiName

public String getDefaultLocalJndiName(EjbDeploymentSummary summary)
Specified by:
getDefaultLocalJndiName in interface DefaultJndiBindingPolicy

getDefaultRemoteHomeJndiName

public String getDefaultRemoteHomeJndiName(EjbDeploymentSummary summary)
Specified by:
getDefaultRemoteHomeJndiName in interface DefaultJndiBindingPolicy

getDefaultRemoteJndiName

public String getDefaultRemoteJndiName(EjbDeploymentSummary summary)
Specified by:
getDefaultRemoteJndiName in interface DefaultJndiBindingPolicy

getJndiName

public String getJndiName(EjbDeploymentSummary summary)
Description copied from interface: DefaultJndiBindingPolicy
Returns the JNDI name that should be assigned to this deployment based on the information contained in the specified summary

Specified by:
getJndiName in interface DefaultJndiBindingPolicy
Returns:

getJndiName

public String getJndiName(EjbDeploymentSummary summary,
                          String iface,
                          KnownInterfaces.KnownInterfaceType ifaceType)
Description copied from interface: DefaultJndiBindingPolicy
Get the jndi name to use as the reference link target and proxy binding location for a given ejb interface.

Specified by:
getJndiName in interface DefaultJndiBindingPolicy
Parameters:
summary - - the deployment summary information for the ejb in question.
iface - - the fully qualified name of the interface, may be null.
ifaceType - - the classification of iface to one of the known ejb interface types
Returns:


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