Interface ConstructorStrategy
-
- All Known Implementing Classes:
DefaultConstructorStrategy
,NullConstructorStrategy
public interface ConstructorStrategy
The strategy used to construct an instance of aClass
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
construct(java.lang.Class<?> clazz)
Constructs an instance of aClass
.
-
-
-
Method Detail
-
construct
java.lang.Object construct(java.lang.Class<?> clazz) throws javax.script.ScriptException
Constructs an instance of aClass
.- Parameters:
clazz
- theClass
- Returns:
- the constructed instance or
null
- Throws:
javax.script.ScriptException
- if the instance could not be constructed
-
-