org.ow2.easybeans.api
Interface EZBContainerConfig


public interface EZBContainerConfig

Configuration for a Container.

Author:
Florent Benoit Contributors: S. Ali Tokmen (JNDI naming strategy)

Method Summary
 void addCallback(EZBContainerLifeCycleCallback callback)
           
 void addInjectors(ResourceInjector injector)
           
 Context getAppContext()
           
 String getApplicationName()
          Gets the application name of this container.
 org.ow2.util.archive.api.IArchive getArchive()
           
 List<EZBContainerLifeCycleCallback> getCallbacks()
           
 EZBContainerJNDIResolver getContainerJNDIResolver()
           
 org.ow2.util.ee.deploy.api.deployable.IDeployable getDeployable()
           
 Context getEnvContext()
           
 EZBServer getEZBServer()
           
 List<ResourceInjector> getInjectors()
           
 Context getModuleContext()
           
 String getModuleName()
          Gets the module name of this container.
 List<EZBNamingStrategy> getNamingStrategies()
           
 void setAppContext(Context appContext)
          Sets the app context.
 void setApplicationName(String applicationName)
          Sets the Application Name of this container (EAR case).
 void setContainerJNDIResolver(EZBContainerJNDIResolver containerJNDIResolver)
          Sets the JNDI resolver.
 void setEnvContext(Context compEnvContext)
          Sets the ENC context.
 void setEZBServer(EZBServer easybeansServer)
          Sets the easybeans server.
 void setModuleContext(Context moduleContext)
          Sets the module context.
 void setModuleName(String moduleName)
          Sets the Module Name of this container.
 void setNamingStrategies(List<EZBNamingStrategy> strategies)
          Define naming strategies to use.
 

Method Detail

getCallbacks

List<EZBContainerLifeCycleCallback> getCallbacks()
Returns:
the callbacks

addCallback

void addCallback(EZBContainerLifeCycleCallback callback)
Parameters:
callback - the callbacks to add.

getDeployable

org.ow2.util.ee.deploy.api.deployable.IDeployable getDeployable()
Returns:
the deployable.

getArchive

org.ow2.util.archive.api.IArchive getArchive()
Returns:
the archive

getNamingStrategies

List<EZBNamingStrategy> getNamingStrategies()
Returns:
JNDI naming strategy in use.

setNamingStrategies

void setNamingStrategies(List<EZBNamingStrategy> strategies)
Define naming strategies to use.

Parameters:
strategies - the naming strategies

getInjectors

List<ResourceInjector> getInjectors()
Returns:
the injectors

addInjectors

void addInjectors(ResourceInjector injector)
Parameters:
injector - the injectors to set

getEZBServer

EZBServer getEZBServer()
Returns:
the easybeans server

setEZBServer

void setEZBServer(EZBServer easybeansServer)
Sets the easybeans server.

Parameters:
easybeansServer - the embedded server of this config

getContainerJNDIResolver

EZBContainerJNDIResolver getContainerJNDIResolver()
Returns:
the JNDI Resolver.

setContainerJNDIResolver

void setContainerJNDIResolver(EZBContainerJNDIResolver containerJNDIResolver)
Sets the JNDI resolver.

Parameters:
containerJNDIResolver - the given resolver.

setModuleName

void setModuleName(String moduleName)
Sets the Module Name of this container.

Parameters:
moduleName - the name of this container.

getModuleName

String getModuleName()
Gets the module name of this container.

Returns:
the module name.

getApplicationName

String getApplicationName()
Gets the application name of this container.

Returns:
the application name.

setApplicationName

void setApplicationName(String applicationName)
Sets the Application Name of this container (EAR case).

Parameters:
applicationName - the name of the application of this container.

getModuleContext

Context getModuleContext()
Returns:
the java:module context.

getAppContext

Context getAppContext()
Returns:
the java:app context.

getEnvContext

Context getEnvContext()
Returns:
the java:comp/env context.

setEnvContext

void setEnvContext(Context compEnvContext)
Sets the ENC context.

Parameters:
compEnvContext - the java:comp/env context.

setModuleContext

void setModuleContext(Context moduleContext)
Sets the module context.

Parameters:
moduleContext - the java:module context.

setAppContext

void setAppContext(Context appContext)
Sets the app context.

Parameters:
appContext - the java:module context.


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.