org.apache.sling.testing.tools.serversetup
Class ServerSetupSingleton
java.lang.Object
org.apache.sling.testing.tools.serversetup.ServerSetupSingleton
public class ServerSetupSingleton
- extends Object
In general we just need a singleton ServerSetup, that
uses System properties for its configuration - this class
supplies that.
|
Method Summary |
static ServerSetup |
instance()
Same as no-parameter instance() method, but uses System properties
to create its instance. |
static ServerSetup |
instance(Properties config)
Create an instance based on the {@CLASS_NAME_PROP)
property if needed and return it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAME_PROP
public static final String CLASS_NAME_PROP
- Property name of the ServerSetup class that we instantiate
- See Also:
- Constant Field Values
ServerSetupSingleton
public ServerSetupSingleton()
instance
public static ServerSetup instance(Properties config)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Create an instance based on the {@CLASS_NAME_PROP)
property if needed and return it.
- Parameters:
config - Ignored unless an instance is created
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
instance
public static ServerSetup instance()
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Same as no-parameter instance() method, but uses System properties
to create its instance.
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.