echopointng.ui.util
Class StringPeerFactory

java.lang.Object
  extended by echopointng.ui.util.StringPeerFactory

public class StringPeerFactory
extends java.lang.Object

A PeerFactory that can return and peer object instance for a given string (rather than use class name which is what PeerFactory does)


Constructor Summary
StringPeerFactory(java.lang.String resourceName, java.lang.ClassLoader classLoader)
           
 
Method Summary
 java.lang.Object getPeer(java.lang.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
 

Constructor Detail

StringPeerFactory

public StringPeerFactory(java.lang.String resourceName,
                         java.lang.ClassLoader classLoader)
Method Detail

getPeer

public java.lang.Object getPeer(java.lang.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