org.objectweb.easybeans.api
Interface EZBServer

All Known Implementing Classes:
Embedded

public interface EZBServer

Defines an EasyBeans server.

Author:
Florent Benoit

Method Summary
 EZBContainer createContainer(EZBArchive archive)
          Creates and adds an ejb3 container to the managed container.
 EZBContainer findContainer(EZBArchive archive)
          Gets a container managed by this server.
 EZBComponentManager getComponentManager()
           
 EZBContainer getContainer(java.lang.String id)
          Gets a container managed by this server.
 java.util.Map<java.lang.String,EZBContainer> getContainers()
           
 java.lang.Integer getID()
          Gets the id of this embedded server.
 void removeContainer(EZBContainer container)
          Remove a given container.
 

Method Detail

getID

java.lang.Integer getID()
Gets the id of this embedded server.

Returns:
the id of this server.

createContainer

EZBContainer createContainer(EZBArchive archive)
Creates and adds an ejb3 container to the managed container.

Parameters:
archive - jar file or exploded archive.
Returns:
the created container.

getContainer

EZBContainer getContainer(java.lang.String id)
Gets a container managed by this server.

Parameters:
id - the container id.
Returns:
the container if it is found, else null.

findContainer

EZBContainer findContainer(EZBArchive archive)
Gets a container managed by this server.

Parameters:
archive - the archive used by the given container.
Returns:
the container if it is found, else null.

removeContainer

void removeContainer(EZBContainer container)
Remove a given container.

Parameters:
container - the container to be removed.

getContainers

java.util.Map<java.lang.String,EZBContainer> getContainers()
Returns:
Returns the deployed containers.

getComponentManager

EZBComponentManager getComponentManager()
Returns:
the ComponentManager used by this instance.