public class GroovyAdapterService extends AdapterService<groovy.lang.GroovyObject>
AdapterService.AdapterWrapper<SCRIPT_OBJECT>
Constructor and Description |
---|
GroovyAdapterService(MultipleGroovyScriptFactory groovyScriptFactory) |
Modifier and Type | Method and Description |
---|---|
Object |
executeMethod(String key,
String methodName,
Object... args)
Execute Native script by default given method Name
|
AdapterService.AdapterWrapper<groovy.lang.GroovyObject> |
get(String key) |
protected AdapterService.AdapterWrapper<groovy.lang.GroovyObject> |
getAdapterWrapper(String resourceLocationName,
org.springframework.scripting.ScriptSource scriptSource,
org.springframework.core.io.Resource scriptResourceRef) |
Collection<String> |
getKeys() |
void |
remove(String key) |
AdapterService.AdapterWrapper<groovy.lang.GroovyObject> |
set(String key,
AdapterService.AdapterWrapper adapter) |
execute, flushAdapter, getAliasToPathTransformer, getRegisteredAdapter, getResource, registerAdapter, registerAdapter, registerMultiple, reload, reload, reloadAdapter, setAliasToPathTransformer, verify
public GroovyAdapterService(MultipleGroovyScriptFactory groovyScriptFactory)
public AdapterService.AdapterWrapper<groovy.lang.GroovyObject> get(String key)
get
in class AdapterService<groovy.lang.GroovyObject>
public AdapterService.AdapterWrapper<groovy.lang.GroovyObject> set(String key, AdapterService.AdapterWrapper adapter)
set
in class AdapterService<groovy.lang.GroovyObject>
public void remove(String key)
remove
in class AdapterService<groovy.lang.GroovyObject>
protected AdapterService.AdapterWrapper<groovy.lang.GroovyObject> getAdapterWrapper(String resourceLocationName, org.springframework.scripting.ScriptSource scriptSource, org.springframework.core.io.Resource scriptResourceRef) throws Exception
getAdapterWrapper
in class AdapterService<groovy.lang.GroovyObject>
Exception
public Object executeMethod(String key, String methodName, Object... args) throws Exception
AdapterService
executeMethod
in class AdapterService<groovy.lang.GroovyObject>
key
- to derive Script ObjectmethodName
- as Stringargs
- as Object[]Exception
public Collection<String> getKeys()
getKeys
in class AdapterService<groovy.lang.GroovyObject>
Copyright © 2018. All rights reserved.