public class ServerSetupSingleton extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME_PROP
Property name of the ServerSetup class that we instantiate
|
Constructor and Description |
---|
ServerSetupSingleton() |
Modifier and Type | Method and Description |
---|---|
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. |
public static final String CLASS_NAME_PROP
public static ServerSetup instance(Properties config) throws InstantiationException, IllegalAccessException, ClassNotFoundException
@CLASS_NAME_PROP
property if needed and return it.config
- Ignored unless an instance is createdInstantiationException
IllegalAccessException
ClassNotFoundException
public static ServerSetup instance() throws InstantiationException, IllegalAccessException, ClassNotFoundException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.