org.apache.jackrabbit.standalone.cli.ext
Class StartJackrabbitSingleton

java.lang.Object
  extended by 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
StartJackrabbitSingleton()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context ctx)
          
 String getConfigKey()
           
 String getHomeKey()
           
 void setConfigKey(String configKey)
           
 void setHomeKey(String homeKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartJackrabbitSingleton

public StartJackrabbitSingleton()
Method Detail

execute

public boolean execute(org.apache.commons.chain.Context ctx)
                throws Exception

Specified by:
execute in interface org.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


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.