public abstract class WhichFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_WHICHCLASS
org.apache.env.Which, prepended to unknown projectnames.
|
protected static java.util.Properties |
installedWhichers
List of 'installed' WhichProject implementations.
|
static java.lang.String |
SERVICE_NAME
'WhichFactory'.
|
Constructor and Description |
---|
WhichFactory() |
Modifier and Type | Method and Description |
---|---|
static WhichProject |
newWhichProject(java.lang.String name,
java.lang.String options)
Factory method to get a WhichProject implementation for the name.
|
public static final java.lang.String DEFAULT_WHICHCLASS
public static final java.lang.String SERVICE_NAME
protected static java.util.Properties installedWhichers
public static WhichProject newWhichProject(java.lang.String name, java.lang.String options) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
Returns a WhichProject using the name as an FQCN; or looks up the name in WhichFactory.properties; or assuming it's a simple name and appends DEFAULT_WHICHCLASS on the front.
name
- FQCN, simple name, or installed name of a
WhichProject implementation classoptions
- to use when getting the classjava.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 2001 Apache. All Rights Reserved.