org.apache.env
Class WhichFactory
java.lang.Object
org.apache.env.WhichFactory
public abstract class WhichFactory
extends java.lang.Object
Simple factory class for WhichProject implementations.
A list of 'installed' WhichProject impls is kept in our matching
org/apache/env/WhichFactory.properties file.
$Id: WhichFactory.java,v 1.1 2001/12/11 17:42:50 curcuru Exp $
DEFAULT_WHICHCLASS
public static final String DEFAULT_WHICHCLASS
org.apache.env.Which, prepended to unknown projectnames.
SERVICE_NAME
public static final String SERVICE_NAME
'WhichFactory'.
installedWhichers
protected static Properties installedWhichers
List of 'installed' WhichProject implementations.
newWhichProject
public static WhichProject newWhichProject(String name,
String options)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
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.
name
- FQCN, simple name, or installed name of a
WhichProject implementation classoptions
- to use when getting the class
Copyright B) 2001 Apache. All Rights Reserved.