Class AbstractFactory<K,​T>

  • All Implemented Interfaces:
    org.brijframework.factories.Factory<K,​T>
    Direct Known Subclasses:
    AbstractBootstrapFactory, AbstractModuleFactory

    public abstract class AbstractFactory<K,​T>
    extends Object
    implements org.brijframework.factories.Factory<K,​T>
    • Constructor Detail

      • AbstractFactory

        public AbstractFactory()
    • Method Detail

      • getContainer

        public org.brijframework.container.Container getContainer()
        Specified by:
        getContainer in interface org.brijframework.factories.Factory<K,​T>
      • setContainer

        public void setContainer​(org.brijframework.container.Container container)
        Specified by:
        setContainer in interface org.brijframework.factories.Factory<K,​T>
      • getCache

        public ConcurrentHashMap<K,​T> getCache()
        Specified by:
        getCache in interface org.brijframework.factories.Factory<K,​T>
      • getContainer

        public T getContainer​(K modelKey)
      • clear

        public org.brijframework.factories.Factory<K,​T> clear()
        Specified by:
        clear in interface org.brijframework.factories.Factory<K,​T>
      • register

        public T register​(K key,
                          T value)
        Specified by:
        register in interface org.brijframework.factories.Factory<K,​T>
      • find

        public T find​(K key)
        Specified by:
        find in interface org.brijframework.factories.Factory<K,​T>
      • getEnvProperty

        public Object getEnvProperty​(String key)
      • contains

        public boolean contains​(K key)
        Specified by:
        contains in interface org.brijframework.factories.Factory<K,​T>
      • preregister

        protected abstract void preregister​(K key,
                                            T value)
      • postregister

        protected abstract void postregister​(K key,
                                             T value)
      • loadContainer

        public void loadContainer​(K key,
                                  T value)
        Specified by:
        loadContainer in interface org.brijframework.factories.Factory<K,​T>