org.apache.env
public abstract class WhichFactory extends Object
Version: $Id: WhichFactory.java 225939 2001-12-11 17:42:50Z curcuru $
Field Summary | |
---|---|
static String | DEFAULT_WHICHCLASS org.apache.env.Which, prepended to unknown projectnames. |
protected static Properties | installedWhichers List of 'installed' WhichProject implementations. |
static String | SERVICE_NAME 'WhichFactory'. |
Method Summary | |
---|---|
static WhichProject | newWhichProject(String name, String options)
Factory method to get a WhichProject implementation for the name.
|
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.
Parameters: name FQCN, simple name, or installed name of a WhichProject implementation class options to use when getting the class
Returns: a WhichProject object
Throws: ClassNotFoundException IllegalAccessException InstantiationException