org.cafesip.jiplet
Interface VendorDescriptor


public interface VendorDescriptor

This interface provides a way for handling vendor-specific deployment descriptors for a jiplet context. Currently, the jiplet container runs in a standalone mode and as a JBOSS service. For each of these modes, this interface is implemented to provide vendor-specifc handling of the deployment descriptor.


Method Summary
 java.lang.String getEjbLocalRefJndiName(java.lang.String ejbRefName)
          Get the JNDI name given the EJB local referenece name.
 java.lang.String getEjbRefJndiName(java.lang.String ejbRefName)
          Get the JNDI name given the EJB referenece name.
 java.lang.String getEnvJndiName(java.lang.String envName)
          Get the JNDI name given the env name.
 java.lang.String getResourceEnvJndiName(java.lang.String resourceEnvName)
          Get the JNDI name given the env resource name.
 java.lang.String getResourceJndiName(java.lang.String resName)
          Get the JNDI name given the resource name.
 void init(java.lang.String context, JipApplication config, java.io.File dir)
          This method is called by the jiplet container during the initialization of a context to specify the configuration information and the deployment directory.
 

Method Detail

init

void init(java.lang.String context,
          JipApplication config,
          java.io.File dir)
This method is called by the jiplet container during the initialization of a context to specify the configuration information and the deployment directory. The class implementing this interface must use this information to initialize the vendor-specific deployment descriptor.

Parameters:
context - Name of the context.
config - The jiplet configuration (deployment descriptor).
dir - context root directory.

getResourceJndiName

java.lang.String getResourceJndiName(java.lang.String resName)
Get the JNDI name given the resource name. If the JNDI name has not been specified in the vendor-specific deployment descriptor, it must return the resource name itself.

Parameters:
resName -
Returns:
the JNDI name

getEnvJndiName

java.lang.String getEnvJndiName(java.lang.String envName)
Get the JNDI name given the env name. If the JNDI name has not been specified in the vendor-specific deployment descriptor, it must return the env name itself.

Parameters:
envName -
Returns:

getResourceEnvJndiName

java.lang.String getResourceEnvJndiName(java.lang.String resourceEnvName)
Get the JNDI name given the env resource name. If the JNDI name has not been specified in the vendor-specific deployment descriptor, it must return the resource env name itself.

Parameters:
resourceEnvName -
Returns:

getEjbRefJndiName

java.lang.String getEjbRefJndiName(java.lang.String ejbRefName)
Get the JNDI name given the EJB referenece name. If the JNDI name has not been specified in the vendor-specific deployment descriptor, it must return the EJB ref name itself.

Parameters:
ejbRefName -
Returns:

getEjbLocalRefJndiName

java.lang.String getEjbLocalRefJndiName(java.lang.String ejbRefName)
Get the JNDI name given the EJB local referenece name. If the JNDI name has not been specified in the vendor-specific deployment descriptor, it must return the EJB ref name itself.

Parameters:
ejbRefName -
Returns:


http://www.cafesip.org