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 thecreate(Object[])
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create(Object[] objects)
Create a new instance with the provided object parameters.Class<T>
getDeclaringClass()
Access the implementation of this class.
-
-
-
Method Detail
-
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
-
-