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