org.rapla
Class RaplaMainContainer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.rapla.framework.internal.ContainerImpl
          extended by org.rapla.RaplaMainContainer
All Implemented Interfaces:
Disposable, LogEnabled, Container

public final class RaplaMainContainer
extends org.rapla.framework.internal.ContainerImpl

The Rapla Main Container class for the basic container for Rapla specific services and the rapla plugin architecture. The rapla container has only one instance at runtime. Configuration of the RaplaMainContainer is done in the rapla*.xconf files. Typical configurations of the MainContainer are

  1. Standalone (rapla.xconf): A ClientService, one facade (with preconfigured auto admin login) and a storage (file).
  2. Client (raplaclient.xconf ): A ClientService, one facade (without auto login) and a remote storage ( automaticaly pointing to the download server in webstart mode)
  3. Server (raplaserver.xconf ): A ServerService (providin a facade) a messaging server for handling the connections with the clients, a storage (file or db) and an extra service for importing and exporting in the db
  4. Embedded: Configuration example follows.

The Main Container provides the following Services to all RaplaComponents

See Also:
I18nBundle, RaplaLocale, AppointmentFormater, LocaleSelector

Field Summary
 
Fields inherited from class org.rapla.framework.internal.ContainerImpl
m_componentHandler, m_config, m_context, m_loggerManager, m_parent, m_roleMap
 
Fields inherited from interface org.rapla.framework.Container
ROLE
 
Constructor Summary
RaplaMainContainer()
           
RaplaMainContainer(RaplaStartupEnvironment env)
           
RaplaMainContainer(StartupEnvironment env)
           
 
Method Summary
 void dispose()
           
protected  Map getComponentInfos()
           
 
Methods inherited from class org.rapla.framework.internal.ContainerImpl
addContainerProvidedComponent, addContainerProvidedComponent, addContainerProvidedComponent, addContainerProvidedComponent, addContainerProvidedComponent, addContainerProvidedComponentInstance, addContainerProvidedComponentInstance, configure, getAllServicesFor, getAllServicesForThisContainer, getContext, getStartupEnvironment, init, instanciate, lookupServicesFor, removeAllComponents
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaplaMainContainer

public RaplaMainContainer()
                   throws Exception
Throws:
Exception

RaplaMainContainer

public RaplaMainContainer(RaplaStartupEnvironment env)
                   throws Exception
Throws:
Exception

RaplaMainContainer

public RaplaMainContainer(StartupEnvironment env)
                   throws Exception
Throws:
Exception
Method Detail

getComponentInfos

protected Map getComponentInfos()
Overrides:
getComponentInfos in class org.rapla.framework.internal.ContainerImpl

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class org.rapla.framework.internal.ContainerImpl
See Also:
Disposable.dispose()


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.