echopoint.util
Class StringPeerFactory
java.lang.Object
echopoint.util.StringPeerFactory
public class StringPeerFactory
- extends Object
A PeerFactory that can return and peer object instance
for a given string (rather than use class name
which is what PeerFactory does)
|
Method Summary |
Object |
getPeer(String matchString)
Retrieves the appropriate peer instance for a given
String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringPeerFactory
public StringPeerFactory(String resourceName,
ClassLoader classLoader)
getPeer
public Object getPeer(String matchString)
- Retrieves the appropriate peer instance for a given
String.
- Parameters:
matchString - - the string to match
- Returns:
- the relevant peer, or null if none can be found