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