public class Assembler extends AssemblerTool implements Assembler, JndiConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
Assembler.DeploymentListenerObserver |
| Modifier and Type | Field and Description |
|---|---|
protected OpenEjbConfiguration |
config |
protected OpenEjbConfigurationFactory |
configFactory |
static Logger |
logger |
static String |
OPENEJB_JPA_DEPLOY_TIME_ENHANCEMENT_PROP |
static String |
OPENEJB_TIMERS_ON |
static String |
OPENEJB_URL_PKG_PREFIX |
static String |
PROPAGATE_APPLICATION_EXCEPTIONS |
static String |
TIMER_STORE_CLASS |
protected SafeToolkit |
toolkit |
props, serviceInterfacesJAVA_OPENEJB_NAMING_CONTEXT, OPENEJB_RESOURCE_JNDI_PREFIX, PERSISTENCE_UNIT_NAMING_CONTEXT, VALIDATOR_FACTORY_NAMING_CONTEXT, VALIDATOR_NAMING_CONTEXT| Constructor and Description |
|---|
Assembler() |
Assembler(JndiFactory jndiFactory) |
checkImplementationpublic static final String OPENEJB_URL_PKG_PREFIX
public static final Logger logger
public static final String OPENEJB_JPA_DEPLOY_TIME_ENHANCEMENT_PROP
public static final String PROPAGATE_APPLICATION_EXCEPTIONS
public static final String TIMER_STORE_CLASS
public static final String OPENEJB_TIMERS_ON
protected OpenEjbConfigurationFactory configFactory
protected SafeToolkit toolkit
protected OpenEjbConfiguration config
public Assembler()
public Assembler(JndiFactory jndiFactory)
public ContainerSystem getContainerSystem()
getContainerSystem in interface Assemblerpublic TransactionManager getTransactionManager()
getTransactionManager in interface Assemblerpublic SecurityService getSecurityService()
getSecurityService in interface Assemblerpublic void addDeploymentListener(DeploymentListener deploymentListener)
public void removeDeploymentListener(DeploymentListener deploymentListener)
public void init(Properties props) throws OpenEJBException
init in interface AssemblerOpenEJBExceptionpublic static void installNaming()
public static void installNaming(String prefix)
public static void installNaming(String prefix, boolean clean)
public void build()
throws OpenEJBException
build in interface AssemblerOpenEJBExceptionprotected OpenEjbConfiguration getOpenEjbConfiguration() throws OpenEJBException
OpenEJBExceptionpublic void buildContainerSystem(OpenEjbConfiguration configInfo) throws Exception
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
configInfo - OpenEjbConfigurationException - if there was a problem constructing the ContainerSystem.OpenEjbConfigurationpublic boolean isDeployed(String path)
public Collection<AppInfo> getDeployedApplications()
public AppContext createApplication(EjbJarInfo ejbJar) throws NamingException, IOException, OpenEJBException
public AppContext createEjbJar(EjbJarInfo ejbJar) throws NamingException, IOException, OpenEJBException
public AppContext createApplication(EjbJarInfo ejbJar, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException
public AppContext createEjbJar(EjbJarInfo ejbJar, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException
public AppContext createClient(ClientInfo clientInfo) throws NamingException, IOException, OpenEJBException
public AppContext createClient(ClientInfo clientInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException
public AppContext createConnector(ConnectorInfo connectorInfo) throws NamingException, IOException, OpenEJBException
public AppContext createConnector(ConnectorInfo connectorInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException
public AppContext createWebApp(WebAppInfo webAppInfo) throws NamingException, IOException, OpenEJBException
public AppContext createWebApp(WebAppInfo webAppInfo, ClassLoader classLoader) throws NamingException, IOException, OpenEJBException
public AppContext createApplication(AppInfo appInfo) throws OpenEJBException, IOException, NamingException
public AppContext createApplication(AppInfo appInfo, ClassLoader classLoader) throws OpenEJBException, IOException, NamingException
public AppContext createApplication(AppInfo appInfo, ClassLoader classLoader, boolean start) throws OpenEJBException, IOException, NamingException
public void bindGlobals(Map<String,Object> bindings) throws NamingException
NamingExceptionpublic List<BeanContext> initEjbs(ClassLoader classLoader, AppInfo appInfo, AppContext appContext, Set<Injection> injections, List<BeanContext> allDeployments, String webappId) throws OpenEJBException
OpenEJBExceptionpublic void startEjbs(boolean start,
List<BeanContext> allDeployments)
throws OpenEJBException
OpenEJBExceptionpublic void destroyApplication(String filePath) throws UndeployException, NoSuchApplicationException
public void destroyApplication(AppContext appContext) throws UndeployException
UndeployExceptionpublic void destroyApplication(AppInfo appInfo) throws UndeployException
UndeployExceptionpublic ClassLoader createAppClassLoader(AppInfo appInfo) throws OpenEJBException, IOException
OpenEJBExceptionIOExceptionpublic void createExternalContext(JndiContextInfo contextInfo) throws OpenEJBException
OpenEJBExceptionpublic void createContainer(ContainerInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void removeContainer(String containerId)
public void createService(ServiceInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void createProxyFactory(ProxyFactoryInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void createResource(ResourceInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void createConnectionManager(ConnectionManagerInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void createSecurityService(SecurityServiceInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic void createTransactionManager(TransactionServiceInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic static void logUnusedProperties(org.apache.xbean.recipe.ObjectRecipe serviceRecipe,
ServiceInfo info)
public static org.apache.xbean.recipe.ObjectRecipe prepareRecipe(ServiceInfo info)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.