public class NullConstructorStrategy extends java.lang.Object implements ConstructorStrategy
ConstructorStrategy implementation that always returns null.
Used to indicate that only static methods should be called to evaluate the
JavaCompiledScript holding the Class.| Constructor and Description |
|---|
NullConstructorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
construct(java.lang.Class<?> clazz)
Constructs an instance of a
Class. |
public java.lang.Object construct(java.lang.Class<?> clazz)
throws javax.script.ScriptException
ConstructorStrategyClass.construct in interface ConstructorStrategyclazz - the Classnulljavax.script.ScriptException - if the instance could not be constructed