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 java.lang.Object implements org.springframework.context.ApplicationContextAwareRegisters a store into a search path- Author:
- muzquiano
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanprependprotected SearchPathsearchPathprotected Storestore
-
Constructor Summary
Constructors Constructor Description StoreRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()protected java.lang.StringgetSearchPathId()Overrides the id of the search path to usevoidinit()Spring init methodprotected voidplugin(Store store, SearchPath searchPath, boolean prepend)Plugs the store into the search pathvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetPrepend(boolean prepend)Identifies whether to prepend or notvoidsetSearchPath(SearchPath searchPath)Sets the search pathvoidsetStore(Store store)Sets the store
-
-
-
Field Detail
-
searchPath
protected SearchPath searchPath
-
store
protected Store store
-
prepend
protected boolean prepend
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.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- storesearchPath- search pathprepend- whether to prepend or not
-
-