Class StoreRegistrar

java.lang.Object
org.springframework.extensions.webscripts.StoreRegistrar
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

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

    • searchPath

      protected SearchPath searchPath
    • store

      protected Store store
    • prepend

      protected boolean prepend
  • Constructor Details

    • StoreRegistrar

      public StoreRegistrar()
  • Method Details

    • 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 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