org.apache.openejb.spring
Class AbstractApplication

java.lang.Object
  extended by org.apache.openejb.spring.AbstractApplication
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
Application, ClassPathApplication

public abstract class AbstractApplication
extends Object
implements org.springframework.context.ApplicationContextAware


Field Summary
protected  List<AppInfo> applications
           
protected  boolean export
           
protected  OpenEJB openEJB
           
protected  boolean started
           
 
Constructor Summary
AbstractApplication()
           
 
Method Summary
 JndiBuilder.JndiNameStrategy createStrategy(AppInfo appInfo, List<DeploymentInfo> deployments, DeploymentInfo deployment)
           
protected  void deployApplication()
           
protected  Assembler getAssembler()
           
 Map<String,EJB> getEjbBindings(JndiBuilder.JndiNameStrategy strategy, CoreDeploymentInfo deployment)
           
 OpenEJB getOpenEJB()
           
 boolean isExport()
           
protected abstract  List<AppInfo> loadApplications()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setExport(boolean export)
           
 void setOpenEJB(OpenEJB openEJB)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applications

protected final List<AppInfo> applications

openEJB

protected OpenEJB openEJB

started

protected boolean started

export

protected boolean export
Constructor Detail

AbstractApplication

public AbstractApplication()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getOpenEJB

public OpenEJB getOpenEJB()

setOpenEJB

public void setOpenEJB(OpenEJB openEJB)

isExport

public boolean isExport()

setExport

public void setExport(boolean export)

loadApplications

protected abstract List<AppInfo> loadApplications()
                                           throws OpenEJBException
Throws:
OpenEJBException

start

@PostConstruct
public void start()
           throws OpenEJBException
Throws:
OpenEJBException

deployApplication

protected void deployApplication()
                          throws OpenEJBException
Throws:
OpenEJBException

getEjbBindings

public Map<String,EJB> getEjbBindings(JndiBuilder.JndiNameStrategy strategy,
                                      CoreDeploymentInfo deployment)

createStrategy

public JndiBuilder.JndiNameStrategy createStrategy(AppInfo appInfo,
                                                   List<DeploymentInfo> deployments,
                                                   DeploymentInfo deployment)
                                            throws OpenEJBException
Throws:
OpenEJBException

stop

@PreDestroy
public void stop()

getAssembler

protected Assembler getAssembler()


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