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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextprotected StringOverrides 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 pathvoidSets the store
-
Field Details
-
searchPath
-
store
-
prepend
protected boolean prepend
-
-
Constructor Details
-
StoreRegistrar
public StoreRegistrar()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setStore
Sets the store- Parameters:
store- Store
-
setSearchPath
Sets the search path- Parameters:
searchPath- SearchPath
-
setPrepend
public void setPrepend(boolean prepend) Identifies whether to prepend or not- Parameters:
prepend- boolean
-
getSearchPathId
Overrides the id of the search path to use- Returns:
- String
-
init
public void init()Spring init method -
plugin
Plugs the store into the search path- Parameters:
store- storesearchPath- search pathprepend- whether to prepend or not
-