org.dellroad.stuff.vaadin
Class ContextApplicationFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by org.dellroad.stuff.vaadin.ContextApplicationFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean

Deprecated. Just use a regular bean definition with a factory-method invoking ContextApplication.get

@Deprecated
public class ContextApplicationFactoryBean
extends AbstractFactoryBean

Spring singleton factory bean that produces the currently running ContextApplication Vaadin application instance.

This bean will only work if there is a current ContextApplication running at the time this class is instantiated (see ContextApplication.get() for details). Therefore, it is most appropriate for use within a SpringContextApplication's appplication context.

This class is deprecated because there is a simpler and better way to expose and configure your Vaadin application in the Spring application context is using ContextApplication.get() as a factory method:

  <bean id="myVaadinApplication" class="org.dellroad.stuff.vaadin.ContextApplication" factory-method="get"/>
 

See Also:
ContextApplication.get(), SpringContextApplication

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ContextApplicationFactoryBean()
          Deprecated.  
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
protected  ContextApplication createInstance()
          Deprecated.  
 Class<? extends ContextApplication> getObjectType()
          Deprecated.  
 boolean isAutowire()
          Deprecated. Should this instance autowire the application instance be autowired using the containing bean factory?
 void setAutowire(boolean autowire)
          Deprecated.  
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextApplicationFactoryBean

public ContextApplicationFactoryBean()
Deprecated. 
Method Detail

isAutowire

public boolean isAutowire()
Deprecated. 
Should this instance autowire the application instance be autowired using the containing bean factory? Requires the containing bean factory to be an AutowireCapableBeanFactory. Default is false.


setAutowire

public void setAutowire(boolean autowire)
Deprecated. 

getObjectType

public Class<? extends ContextApplication> getObjectType()
Deprecated. 
Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean

createInstance

protected ContextApplication createInstance()
Deprecated. 
Specified by:
createInstance in class AbstractFactoryBean

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Deprecated. 
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractFactoryBean
Throws:
Exception