Class NullConstructorStrategy
java.lang.Object
ch.obermuhlner.scriptengine.java.constructor.NullConstructorStrategy
- All Implemented Interfaces:
ConstructorStrategy
A
ConstructorStrategy implementation that always returns null.
Used to indicate that only static methods should be called to evaluate the
JavaCompiledScript holding the Class.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NullConstructorStrategy
public NullConstructorStrategy()
-
-
Method Details
-
construct
Description copied from interface:ConstructorStrategyConstructs an instance of aClass.- Specified by:
constructin interfaceConstructorStrategy- Parameters:
clazz- theClass- Returns:
- the constructed instance or
null - Throws:
ScriptException- if the instance could not be constructed
-