Package org.smooks.api
Interface ApplicationContext
-
@ThreadSafe public interface ApplicationContextApplication-scoped service locator.Clients obtain references to application services like
Registryfrom theApplicationContext. A Smooks resource obtains a reference to anApplicationContextby annotating anApplicationContextfield in the resource class withjavax.inject.Inject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)Registers a bean context observer.Collection<BeanContextLifecycleObserver>getBeanContextLifecycleObservers()Get bean context observers.BeanIdStoregetBeanIdStore()Get the BeanIdStore in use within this ContextClassLoadergetClassLoader()Get theClassLoaderto be used by the associated Smooks instanceContentDeliveryRuntimeFactorygetContentDeliveryRuntimeFactory()ProfileStoregetProfileStore()Get the ProfileStore in use within this Context.ReaderPoolFactorygetReaderPoolFactory()RegistrygetRegistry()Get the registry for from the container application context.ResourceConfigLoadergetResourceConfigLoader()ContainerResourceLocatorgetResourceLocator()Get the container resource locator for the context.
-
-
-
Method Detail
-
getResourceLocator
ContainerResourceLocator getResourceLocator()
Get the container resource locator for the context.- Returns:
- ContainerResourceLocator for the context.
-
getRegistry
Registry getRegistry()
Get the registry for from the container application context.- Returns:
- Registry instance.
-
getProfileStore
ProfileStore getProfileStore()
Get the ProfileStore in use within this Context.- Returns:
- The ProfileStore.
-
getBeanIdStore
BeanIdStore getBeanIdStore()
Get the BeanIdStore in use within this Context- Returns:
- The BeanIdStore
-
addBeanContextLifecycleObserver
void addBeanContextLifecycleObserver(BeanContextLifecycleObserver observer)
Registers a bean context observer. This observer instance will be automatically added to allBeanContextinstances.- Parameters:
observer- The actual BeanObserver instance.
-
getBeanContextLifecycleObservers
Collection<BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
Get bean context observers. These observer instances will be automatically added to allBeanContextinstances.- Returns:
- The collection of BeanObserver instance.
- See Also:
addBeanContextLifecycleObserver(org.smooks.javabean.lifecycle.BeanContextLifecycleObserver)
-
getClassLoader
ClassLoader getClassLoader()
Get theClassLoaderto be used by the associated Smooks instance- Returns:
- The ClassLoader.
-
getContentDeliveryRuntimeFactory
ContentDeliveryRuntimeFactory getContentDeliveryRuntimeFactory()
-
getResourceConfigLoader
ResourceConfigLoader getResourceConfigLoader()
-
getReaderPoolFactory
ReaderPoolFactory getReaderPoolFactory()
-
-