Class StoreRegistrar

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class StoreRegistrar
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware
    Registers a store into a search path
    Author:
    muzquiano
    • Field Detail

      • store

        protected Store store
      • prepend

        protected boolean prepend
    • Constructor Detail

      • StoreRegistrar

        public StoreRegistrar()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext()
      • setStore

        public void setStore​(Store store)
        Sets the store
        Parameters:
        store - Store
      • setSearchPath

        public void setSearchPath​(SearchPath searchPath)
        Sets the search path
        Parameters:
        searchPath - SearchPath
      • setPrepend

        public void setPrepend​(boolean prepend)
        Identifies whether to prepend or not
        Parameters:
        prepend - boolean
      • getSearchPathId

        protected java.lang.String getSearchPathId()
        Overrides the id of the search path to use
        Returns:
        String
      • init

        public void init()
        Spring init method
      • plugin

        protected void plugin​(Store store,
                              SearchPath searchPath,
                              boolean prepend)
        Plugs the store into the search path
        Parameters:
        store - store
        searchPath - search path
        prepend - whether to prepend or not