net.sf.seaf.util
Class FactoryUtils
java.lang.Object
net.sf.seaf.util.FactoryUtils
public class FactoryUtils
- extends Object
Utility methods for factory-related functionality.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryUtils
public FactoryUtils()
getInstance
public static FactoryUtils getInstance()
- Returns a default instance of FactoryUtils.
- Returns:
- A default instance of FactoryUtils
getClassForName
public <Type> Class<Type> getClassForName(String fullName,
Class<Type> type)
throws SeafClassLoadingException
- Get a class of a given type.
- Parameters:
fullName - The full name of the class to loadtype - The type to which the class can be casted
- Returns:
- The loaded class
- Throws:
SeafClassLoadingException - When the class cannot be loaded
Copyright © 2008-2011 SEAF. All Rights Reserved.