Package org.smooks.engine
Class DefaultApplicationContext
- java.lang.Object
-
- org.smooks.engine.DefaultApplicationContext
-
- All Implemented Interfaces:
org.smooks.api.ApplicationContext
public class DefaultApplicationContext extends Object implements org.smooks.api.ApplicationContext
Standalone container execution context for Smooks. This context allows Smooks to be executed outside the likes of a Servlet Container.- Author:
- tfennelly
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBeanContextLifecycleObserver(org.smooks.api.bean.lifecycle.BeanContextLifecycleObserver observer)Collection<org.smooks.api.bean.lifecycle.BeanContextLifecycleObserver>getBeanContextLifecycleObservers()org.smooks.api.bean.context.BeanIdStoregetBeanIdStore()ClassLoadergetClassLoader()org.smooks.api.delivery.ContentDeliveryRuntimeFactorygetContentDeliveryRuntimeFactory()org.smooks.api.profile.ProfileStoregetProfileStore()Get the ProfileStore in use within the Standalone Context.org.smooks.api.delivery.ReaderPoolFactorygetReaderPoolFactory()org.smooks.api.RegistrygetRegistry()org.smooks.api.resource.config.loader.ResourceConfigLoadergetResourceConfigLoader()org.smooks.api.resource.ContainerResourceLocatorgetResourceLocator()voidsetBeanIdStore(org.smooks.api.bean.context.BeanIdStore beanIdStore)voidsetClassLoader(ClassLoader classLoader)voidsetContentDeliveryRuntimeFactory(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)voidsetReaderPoolFactory(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)voidsetResourceConfigLoader(org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader)voidsetResourceLocator(org.smooks.api.resource.ContainerResourceLocator resourceLocator)Set the resource locator for this Smooks application context.
-
-
-
Method Detail
-
getResourceLocator
public org.smooks.api.resource.ContainerResourceLocator getResourceLocator()
- Specified by:
getResourceLocatorin interfaceorg.smooks.api.ApplicationContext
-
setResourceLocator
public void setResourceLocator(org.smooks.api.resource.ContainerResourceLocator resourceLocator)
Set the resource locator for this Smooks application context.- Parameters:
resourceLocator- The Resource locator.
-
getRegistry
public org.smooks.api.Registry getRegistry()
- Specified by:
getRegistryin interfaceorg.smooks.api.ApplicationContext
-
getProfileStore
public org.smooks.api.profile.ProfileStore getProfileStore()
Get the ProfileStore in use within the Standalone Context.- Specified by:
getProfileStorein interfaceorg.smooks.api.ApplicationContext- Returns:
- The ProfileStore.
-
getBeanIdStore
public org.smooks.api.bean.context.BeanIdStore getBeanIdStore()
- Specified by:
getBeanIdStorein interfaceorg.smooks.api.ApplicationContext
-
setBeanIdStore
public void setBeanIdStore(org.smooks.api.bean.context.BeanIdStore beanIdStore)
-
addBeanContextLifecycleObserver
public void addBeanContextLifecycleObserver(org.smooks.api.bean.lifecycle.BeanContextLifecycleObserver observer)
- Specified by:
addBeanContextLifecycleObserverin interfaceorg.smooks.api.ApplicationContext
-
getBeanContextLifecycleObservers
public Collection<org.smooks.api.bean.lifecycle.BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
- Specified by:
getBeanContextLifecycleObserversin interfaceorg.smooks.api.ApplicationContext
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceorg.smooks.api.ApplicationContext
-
setContentDeliveryRuntimeFactory
public void setContentDeliveryRuntimeFactory(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
-
getContentDeliveryRuntimeFactory
public org.smooks.api.delivery.ContentDeliveryRuntimeFactory getContentDeliveryRuntimeFactory()
- Specified by:
getContentDeliveryRuntimeFactoryin interfaceorg.smooks.api.ApplicationContext
-
getResourceConfigLoader
public org.smooks.api.resource.config.loader.ResourceConfigLoader getResourceConfigLoader()
- Specified by:
getResourceConfigLoaderin interfaceorg.smooks.api.ApplicationContext
-
setResourceConfigLoader
public void setResourceConfigLoader(org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader)
-
getReaderPoolFactory
public org.smooks.api.delivery.ReaderPoolFactory getReaderPoolFactory()
- Specified by:
getReaderPoolFactoryin interfaceorg.smooks.api.ApplicationContext
-
setReaderPoolFactory
public void setReaderPoolFactory(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)
-
-