Class StartJackrabbitSingleton
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.ext.StartJackrabbitSingleton
-
- All Implemented Interfaces:
org.apache.commons.chain.Command
public class StartJackrabbitSingleton extends Object implements org.apache.commons.chain.Command
Get a Jackrabbit instance and put it in the
Context
.
This commands maintains a cache with already created instances.
if there's no Repository for the given config and home settings a new instance will be created and cached.
-
-
Constructor Summary
Constructors Constructor Description StartJackrabbitSingleton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(org.apache.commons.chain.Context ctx)
String
getConfigKey()
String
getHomeKey()
void
setConfigKey(String configKey)
void
setHomeKey(String homeKey)
-
-
-
Method Detail
-
execute
public boolean execute(org.apache.commons.chain.Context ctx) throws Exception
- Specified by:
execute
in interfaceorg.apache.commons.chain.Command
- Throws:
Exception
-
getConfigKey
public String getConfigKey()
- Returns:
- the config key
-
setConfigKey
public void setConfigKey(String configKey)
- Parameters:
configKey
- the config key to set
-
getHomeKey
public String getHomeKey()
- Returns:
- the home key
-
setHomeKey
public void setHomeKey(String homeKey)
- Parameters:
homeKey
- the home key to set
-
-