net.sourceforge.jparam.conversion.creators
Class CreatorRegistry
java.lang.Object
|
+--net.sourceforge.jparam.conversion.creators.CreatorRegistry
- public class CreatorRegistry
- extends java.lang.Object
This registry holds all the available creators for all registered Java
classes
Once a Class
is registered, all of its constructors are
defined as creator
Constructors with a single argument are also defined as converters from the
arguments type to the class type
- Author:
- ron_sidi
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CreatorRegistry getInstance()
getCreators
java.util.Set getCreators(java.lang.Class c)
registerHelperClass
public void registerHelperClass(java.lang.Class c)
- Register all the creation method defined in the given helper class, a
method is considered a creation method if:
- The method name begins with create (this is needed because Java
doesn't distinguish between methods according to their return type)
- The method is
public
- The method is
static
- The method has exactly one argument
- The method has a typed return value that is not primitive or void
- Parameters:
c
-
registerClass
public void registerClass(java.lang.Class c)
clearSingleton
public static void clearSingleton()
Copyright © 2004 SourceForge. All Rights Reserved.