org.apache.openejb.assembler.classic
Class Assembler

java.lang.Object
  extended by org.apache.openejb.assembler.classic.AssemblerTool
      extended by org.apache.openejb.assembler.classic.Assembler
All Implemented Interfaces:
Assembler

public class Assembler
extends AssemblerTool
implements Assembler


Field Summary
protected  OpenEjbConfiguration config
           
static Logger logger
           
protected  SafeToolkit toolkit
           
 
Fields inherited from class org.apache.openejb.assembler.classic.AssemblerTool
messages, props, serviceInterfaces
 
Constructor Summary
Assembler()
           
 
Method Summary
 void addDeploymentListener(DeploymentListener deploymentListener)
           
 void build()
           
 void buildContainerSystem(OpenEjbConfiguration configInfo)
          When given a complete OpenEjbConfiguration graph this method will construct an entire container system and return a reference to that container system, as ContainerSystem instance.
 ClassLoader createAppClassLoader(AppInfo appInfo)
           
 void createApplication(AppInfo appInfo)
           
 void createApplication(AppInfo appInfo, ClassLoader classLoader)
           
 void createApplication(EjbJarInfo ejbJar)
           
 void createApplication(EjbJarInfo ejbJar, ClassLoader classLoader)
           
 void createClient(ClientInfo clientInfo)
           
 void createClient(ClientInfo clientInfo, ClassLoader classLoader)
           
 void createConnectionManager(ConnectionManagerInfo serviceInfo)
           
 void createConnector(ConnectorInfo connectorInfo)
           
 void createConnector(ConnectorInfo connectorInfo, ClassLoader classLoader)
           
 void createContainer(ContainerInfo serviceInfo)
           
 void createEjbJar(EjbJarInfo ejbJar)
           
 void createEjbJar(EjbJarInfo ejbJar, ClassLoader classLoader)
           
 void createExternalContext(JndiContextInfo contextInfo)
           
 void createProxyFactory(ProxyFactoryInfo serviceInfo)
           
 void createResource(ResourceInfo serviceInfo)
           
 void createSecurityService(SecurityServiceInfo serviceInfo)
           
 void createTransactionManager(TransactionServiceInfo serviceInfo)
           
 void createWebApp(WebAppInfo webAppInfo)
           
 void createWebApp(WebAppInfo webAppInfo, ClassLoader classLoader)
           
 void destroyApplication(String filePath)
           
 ContainerSystem getContainerSystem()
           
static Map<String,Object> getContext()
           
 Collection<AppInfo> getDeployedApplications()
           
 SecurityService getSecurityService()
           
 TransactionManager getTransactionManager()
           
 void init(Properties props)
           
static void installNaming()
           
 void removeContainer(String containerId)
           
 void removeDeploymentListener(DeploymentListener deploymentListener)
           
static void setContext(Map<String,Object> map)
           
 
Methods inherited from class org.apache.openejb.assembler.classic.AssemblerTool
checkImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger

toolkit

protected SafeToolkit toolkit

config

protected OpenEjbConfiguration config
Constructor Detail

Assembler

public Assembler()
Method Detail

getContainerSystem

public ContainerSystem getContainerSystem()
Specified by:
getContainerSystem in interface Assembler

getTransactionManager

public TransactionManager getTransactionManager()
Specified by:
getTransactionManager in interface Assembler

getSecurityService

public SecurityService getSecurityService()
Specified by:
getSecurityService in interface Assembler

addDeploymentListener

public void addDeploymentListener(DeploymentListener deploymentListener)

removeDeploymentListener

public void removeDeploymentListener(DeploymentListener deploymentListener)

init

public void init(Properties props)
          throws OpenEJBException
Specified by:
init in interface Assembler
Throws:
OpenEJBException

installNaming

public static void installNaming()

setContext

public static void setContext(Map<String,Object> map)

getContext

public static Map<String,Object> getContext()

build

public void build()
           throws OpenEJBException
Specified by:
build in interface Assembler
Throws:
OpenEJBException

buildContainerSystem

public void buildContainerSystem(OpenEjbConfiguration configInfo)
                          throws Exception
When given a complete OpenEjbConfiguration graph this method will construct an entire container system and return a reference to that container system, as ContainerSystem instance.

This method leverage the other assemble and apply methods which can be used independently.

Assembles and returns the CoreContainerSystem using the information from the OpenEjbConfiguration object passed in.

 This method performs the following actions(in order):
 

1 Assembles ProxyFactory 2 Assembles External JNDI Contexts 3 Assembles TransactionService 4 Assembles SecurityService 5 Assembles ConnectionManagers 6 Assembles Connectors 7 Assembles Containers 8 Assembles Applications

Parameters:
configInfo -
Throws:
Exception - if there was a problem constructing the ContainerSystem.
Exception
See Also:
OpenEjbConfiguration

getDeployedApplications

public Collection<AppInfo> getDeployedApplications()

createApplication

public void createApplication(EjbJarInfo ejbJar)
                       throws NamingException,
                              IOException,
                              OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createEjbJar

public void createEjbJar(EjbJarInfo ejbJar)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createApplication

public void createApplication(EjbJarInfo ejbJar,
                              ClassLoader classLoader)
                       throws NamingException,
                              IOException,
                              OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createEjbJar

public void createEjbJar(EjbJarInfo ejbJar,
                         ClassLoader classLoader)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createClient

public void createClient(ClientInfo clientInfo)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createClient

public void createClient(ClientInfo clientInfo,
                         ClassLoader classLoader)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createConnector

public void createConnector(ConnectorInfo connectorInfo)
                     throws NamingException,
                            IOException,
                            OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createConnector

public void createConnector(ConnectorInfo connectorInfo,
                            ClassLoader classLoader)
                     throws NamingException,
                            IOException,
                            OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createWebApp

public void createWebApp(WebAppInfo webAppInfo)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createWebApp

public void createWebApp(WebAppInfo webAppInfo,
                         ClassLoader classLoader)
                  throws NamingException,
                         IOException,
                         OpenEJBException
Throws:
NamingException
IOException
OpenEJBException

createApplication

public void createApplication(AppInfo appInfo)
                       throws OpenEJBException,
                              IOException,
                              NamingException
Throws:
OpenEJBException
IOException
NamingException

createApplication

public void createApplication(AppInfo appInfo,
                              ClassLoader classLoader)
                       throws OpenEJBException,
                              IOException,
                              NamingException
Throws:
OpenEJBException
IOException
NamingException

destroyApplication

public void destroyApplication(String filePath)
                        throws UndeployException,
                               NoSuchApplicationException
Throws:
UndeployException
NoSuchApplicationException

createAppClassLoader

public ClassLoader createAppClassLoader(AppInfo appInfo)
                                 throws OpenEJBException,
                                        IOException
Throws:
OpenEJBException
IOException

createExternalContext

public void createExternalContext(JndiContextInfo contextInfo)
                           throws OpenEJBException
Throws:
OpenEJBException

createContainer

public void createContainer(ContainerInfo serviceInfo)
                     throws OpenEJBException
Throws:
OpenEJBException

removeContainer

public void removeContainer(String containerId)

createProxyFactory

public void createProxyFactory(ProxyFactoryInfo serviceInfo)
                        throws OpenEJBException
Throws:
OpenEJBException

createResource

public void createResource(ResourceInfo serviceInfo)
                    throws OpenEJBException
Throws:
OpenEJBException

createConnectionManager

public void createConnectionManager(ConnectionManagerInfo serviceInfo)
                             throws OpenEJBException
Throws:
OpenEJBException

createSecurityService

public void createSecurityService(SecurityServiceInfo serviceInfo)
                           throws OpenEJBException
Throws:
OpenEJBException

createTransactionManager

public void createTransactionManager(TransactionServiceInfo serviceInfo)
                              throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.