org.objectweb.easybeans.api
Interface EZBContainer

All Superinterfaces:
EZBManageableContainer
All Known Implementing Classes:
JContainer3

public interface EZBContainer
extends EZBManageableContainer

This interface represents an EasyBeans EJB Container.

Author:
Florent Benoit

Method Summary
 java.lang.ClassLoader getClassLoader()
          Gets the classloader of the container.
 EZBContainerConfig getConfiguration()
           
 Factory getFactory(java.lang.String factoryName)
          Gets a factory with its given name.
 EZBPersistenceUnitManager getPersistenceUnitManager()
          Gets the persistence manager object which manages all persistence-unit associated to this container.
 void setClassLoader(java.lang.ClassLoader classLoader)
          Sets the classloader.
 void setPersistenceUnitManager(EZBPersistenceUnitManager persistenceUnitManager)
          Sets the persistence manager object which manages all persistence-unit associated to this container.
 
Methods inherited from interface org.objectweb.easybeans.api.EZBManageableContainer
getArchive, getId, getName, isAvailable, start, stop
 

Method Detail

getFactory

Factory getFactory(java.lang.String factoryName)
Gets a factory with its given name.

Parameters:
factoryName - the factory name.
Returns:
the factory found or null.

getClassLoader

java.lang.ClassLoader getClassLoader()
Gets the classloader of the container. May change at each restart of the container.

Returns:
a classloader.

getConfiguration

EZBContainerConfig getConfiguration()
Returns:
Returns the Container Configuration.

getPersistenceUnitManager

EZBPersistenceUnitManager getPersistenceUnitManager()
Gets the persistence manager object which manages all persistence-unit associated to this container.

Returns:
persistence unit manager object

setClassLoader

void setClassLoader(java.lang.ClassLoader classLoader)
Sets the classloader. (if it was not already set else exception).

Parameters:
classLoader - to be used by the container

setPersistenceUnitManager

void setPersistenceUnitManager(EZBPersistenceUnitManager persistenceUnitManager)
Sets the persistence manager object which manages all persistence-unit associated to this container.

Parameters:
persistenceUnitManager - persistence unit manager object to set.