public interface NativeScriptFactory
ExecutableScript
or SearchScript
. Note,
if this factory creates SearchScript
, it must extend AbstractSearchScript
.Modifier and Type | Method and Description |
---|---|
ExecutableScript |
newScript(Map<String,Object> params)
Creates a new instance of either a
ExecutableScript or a SearchScript . |
ExecutableScript newScript(@Nullable Map<String,Object> params)
ExecutableScript
or a SearchScript
.params
- The parameters passed to the script. Can be null.Copyright © 2009–2015. All rights reserved.