Package org.openscience.cdk
Interface DynamicFactory.Creator<T>
- Type Parameters:
T
- the type of object that will be created
- All Known Implementing Classes:
DynamicFactory.BasicCreator
- Enclosing class:
- DynamicFactory
public static interface DynamicFactory.Creator<T>
An interface that wraps object creation via the
create(Object[])
method.-
Method Summary
-
Method Details
-
create
T create(Object[] objects) throws InvocationTargetException, IllegalAccessException, InstantiationException Create a new instance with the provided object parameters.- Parameters:
objects
- parameters for the constructor excluding- Returns:
- a new instance, created with the provided parameters
- Throws:
InvocationTargetException
- thrown if an error occurred during constructionIllegalAccessException
- if the constructor can't be accessed (e.g. private)InstantiationException
- thrown if class is abstract
-
getDeclaringClass
Access the implementation of this class.- Returns:
- the implementation class to be created
-