*/
public static Creator getCreator (Class targetClass) throws CookXmlException
{
if (!Helper.class.isAssignableFrom (targetClass))
{
CookXml.getDefaultExceptionHandler ().handleException (null, new NoDefaultConstructorException (targetClass));
return null;
}
try
{
Constructor ctor = targetClass.getConstructor (EMPTY_CLASS_PARAM);
return new HelperCreator (ctor);
}
catch (Exception ex)
{
CookXml.getDefaultExceptionHandler ().handleException (null, new NoDefaultConstructorException (targetClass));
return null;
}
}