Class DefaultApplicationContextBuilder

  • All Implemented Interfaces:
    org.smooks.api.ApplicationContextBuilder

    public class DefaultApplicationContextBuilder
    extends Object
    implements org.smooks.api.ApplicationContextBuilder
    • Field Detail

      • systemResources

        protected boolean systemResources
      • beanIdStore

        protected org.smooks.api.bean.context.BeanIdStore beanIdStore
      • registry

        protected org.smooks.api.Registry registry
      • contentDeliveryRuntimeFactory

        protected org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory
      • resourceLocator

        protected org.smooks.api.resource.ContainerResourceLocator resourceLocator
      • resourceConfigLoader

        protected org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader
      • readerPoolFactory

        protected org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory
      • filterSettings

        protected org.smooks.api.FilterSettings filterSettings
    • Constructor Detail

      • DefaultApplicationContextBuilder

        public DefaultApplicationContextBuilder()
      • DefaultApplicationContextBuilder

        protected DefaultApplicationContextBuilder​(boolean systemResources,
                                                   ClassLoader classLoader,
                                                   org.smooks.api.Registry registry,
                                                   org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory,
                                                   org.smooks.api.resource.ContainerResourceLocator resourceLocator,
                                                   org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader,
                                                   org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory,
                                                   org.smooks.api.bean.context.BeanIdStore beanIdStore,
                                                   org.smooks.api.FilterSettings filterSettings)
    • Method Detail

      • withRegistry

        public DefaultApplicationContextBuilder withRegistry​(org.smooks.api.Registry registry)
        Specified by:
        withRegistry in interface org.smooks.api.ApplicationContextBuilder
      • withContentDeliveryRuntimeFactory

        public DefaultApplicationContextBuilder withContentDeliveryRuntimeFactory​(org.smooks.api.delivery.ContentDeliveryRuntimeFactory contentDeliveryRuntimeFactory)
        Specified by:
        withContentDeliveryRuntimeFactory in interface org.smooks.api.ApplicationContextBuilder
      • withResourceLocator

        public DefaultApplicationContextBuilder withResourceLocator​(org.smooks.api.resource.ContainerResourceLocator resourceLocator)
        Specified by:
        withResourceLocator in interface org.smooks.api.ApplicationContextBuilder
      • withResourceConfigLoader

        public DefaultApplicationContextBuilder withResourceConfigLoader​(org.smooks.api.resource.config.loader.ResourceConfigLoader resourceConfigLoader)
        Specified by:
        withResourceConfigLoader in interface org.smooks.api.ApplicationContextBuilder
      • withReaderPoolFactory

        public DefaultApplicationContextBuilder withReaderPoolFactory​(org.smooks.api.delivery.ReaderPoolFactory readerPoolFactory)
        Specified by:
        withReaderPoolFactory in interface org.smooks.api.ApplicationContextBuilder
      • withBeanIdStore

        public DefaultApplicationContextBuilder withBeanIdStore​(org.smooks.api.bean.context.BeanIdStore beanIdStore)
        Specified by:
        withBeanIdStore in interface org.smooks.api.ApplicationContextBuilder
      • withFilterSettings

        public org.smooks.api.ApplicationContextBuilder withFilterSettings​(org.smooks.api.FilterSettings filterSettings)
        Specified by:
        withFilterSettings in interface org.smooks.api.ApplicationContextBuilder
      • build

        public org.smooks.api.ApplicationContext build()
        Specified by:
        build in interface org.smooks.api.ApplicationContextBuilder
      • applySettings

        protected void applySettings​(org.smooks.api.FilterSettings filterSettings,
                                     org.smooks.api.Registry registry)
      • initRegistry

        protected void initRegistry​(org.smooks.api.ApplicationContext applicationContext,
                                    org.smooks.api.Registry registry)
      • registerSystemContentHandlerFactories

        protected void registerSystemContentHandlerFactories​(org.smooks.api.Registry registry)
      • registerSystemResources

        protected void registerSystemResources​(org.smooks.api.Registry registry,
                                               org.smooks.api.ApplicationContext applicationContext)
      • setParameter

        protected void setParameter​(String name,
                                    Object value,
                                    org.smooks.api.Registry registry)