org.qi4j.library.spring.bootstrap.internal.application
Class Qi4jApplicationFactoryBean

java.lang.Object
  extended by org.qi4j.library.spring.bootstrap.internal.application.Qi4jApplicationFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public final class Qi4jApplicationFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

This class responsible to handle the lifecycle of qi4j application.


Constructor Summary
Qi4jApplicationFactoryBean(Qi4jApplicationBootstrap applicationBootstrap)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 ApplicationSPI getObject()
           
 Class<Application> getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Qi4jApplicationFactoryBean

public Qi4jApplicationFactoryBean(Qi4jApplicationBootstrap applicationBootstrap)
Method Detail

getObject

public final ApplicationSPI getObject()
                               throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public final Class<Application> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public final boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

destroy

public final void destroy()
                   throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

afterPropertiesSet

public final void afterPropertiesSet()
                              throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

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