Class 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 Detail

      • getResourceLocator

        public org.smooks.api.resource.ContainerResourceLocator getResourceLocator()
        Specified by:
        getResourceLocator in interface org.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:
        getRegistry in interface org.smooks.api.ApplicationContext
      • getProfileStore

        public org.smooks.api.profile.ProfileStore getProfileStore()
        Get the ProfileStore in use within the Standalone Context.
        Specified by:
        getProfileStore in interface org.smooks.api.ApplicationContext
        Returns:
        The ProfileStore.
      • getBeanIdStore

        public org.smooks.api.bean.context.BeanIdStore getBeanIdStore()
        Specified by:
        getBeanIdStore in interface org.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:
        addBeanContextLifecycleObserver in interface org.smooks.api.ApplicationContext
      • getBeanContextLifecycleObservers

        public Collection<org.smooks.api.bean.lifecycle.BeanContextLifecycleObserver> getBeanContextLifecycleObservers()
        Specified by:
        getBeanContextLifecycleObservers in interface org.smooks.api.ApplicationContext
      • setClassLoader

        public void setClassLoader​(ClassLoader classLoader)
      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface org.smooks.api.ApplicationContext
      • setContentDeliveryRuntimeFactory

        public void setContentDeliveryRuntimeFactory​(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
      • getContentDeliveryRuntimeFactory

        public org.smooks.api.delivery.ContentDeliveryRuntimeFactory getContentDeliveryRuntimeFactory()
        Specified by:
        getContentDeliveryRuntimeFactory in interface org.smooks.api.ApplicationContext
      • getResourceConfigLoader

        public org.smooks.api.resource.config.loader.ResourceConfigLoader getResourceConfigLoader()
        Specified by:
        getResourceConfigLoader in interface org.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:
        getReaderPoolFactory in interface org.smooks.api.ApplicationContext
      • setReaderPoolFactory

        public void setReaderPoolFactory​(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)