net.sf.seaf.util
Class FactoryUtils

java.lang.Object
  extended by net.sf.seaf.util.FactoryUtils

public class FactoryUtils
extends Object

Utility methods for factory-related functionality.


Constructor Summary
FactoryUtils()
           
 
Method Summary
<Type> Class<Type>
getClassForName(String fullName, Class<Type> type)
          Get a class of a given type.
static FactoryUtils getInstance()
          Returns a default instance of FactoryUtils.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryUtils

public FactoryUtils()
Method Detail

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 load
type - The type to which the class can be casted
Returns:
The loaded class
Throws:
SeafClassLoadingException - When the class cannot be loaded


Copyright © 2008-2012 SEAF. All Rights Reserved.