org.ow2.easybeans.server.war
Class EmbeddedBootstrap

java.lang.Object
  extended by org.ow2.easybeans.server.war.EmbeddedBootstrap

public class EmbeddedBootstrap
extends java.lang.Object

This bootsrap is instanciated by the context listener. The context listener is registering some libraries in higher classloader and then it can't instantiate directly EasyBeans.

Author:
Florent BENOIT

Constructor Summary
EmbeddedBootstrap()
           
 
Method Summary
 ContainerTypeEnum getContainerType()
           
 org.ow2.easybeans.server.Embedded getEmbedded()
           
protected  org.ow2.easybeans.server.ServerConfig getServerConfig()
           
 ServletContextEvent getServletContextEvent()
           
 void setContainerType(ContainerTypeEnum containerType)
          Defines the container type.
 void setDeployParentDir(java.lang.String deployParentDir)
          Defines the parent directory for all the deployment.
 void setEnableSmartFactory(boolean enableSmartFactory)
          Allows to enable or disable the registration of the smart factory.
 void setServletContextEvent(ServletContextEvent servletContextEvent)
          Defines the context event used at context listener startup.
 void start()
          Start EasyBeans embedded instance.
 void stop()
          Stop EasyBeans instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedBootstrap

public EmbeddedBootstrap()
Method Detail

getEmbedded

public org.ow2.easybeans.server.Embedded getEmbedded()
Returns:
the embedded instance

getContainerType

public ContainerTypeEnum getContainerType()
Returns:
the container type.

setContainerType

public void setContainerType(ContainerTypeEnum containerType)
Defines the container type.

Parameters:
containerType - one of Tomcat5, Tomcat6, Jetty enum type

getServletContextEvent

public ServletContextEvent getServletContextEvent()
Returns:
the servlet context event used at startup of the context listener.

setServletContextEvent

public void setServletContextEvent(ServletContextEvent servletContextEvent)
Defines the context event used at context listener startup.

Parameters:
servletContextEvent - the given context event

setDeployParentDir

public void setDeployParentDir(java.lang.String deployParentDir)
Defines the parent directory for all the deployment.

Parameters:
deployParentDir - the given directory

start

public void start()
Start EasyBeans embedded instance.


stop

public void stop()
Stop EasyBeans instance.


getServerConfig

protected org.ow2.easybeans.server.ServerConfig getServerConfig()
Returns:
returns the Easybeans ServerConfig object.

setEnableSmartFactory

public void setEnableSmartFactory(boolean enableSmartFactory)
Allows to enable or disable the registration of the smart factory.

Parameters:
enableSmartFactory - true to enable or false to disable


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