public class SpringBeansResolverFactory extends Object implements ResolverFactory, Resolver
ResolverFactory
and Resolver
classes to make the beans
managed by the Spring container available in scripting
Constructor and Description |
---|
SpringBeansResolverFactory(org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key)
Allows checking whether there is currently an object bound to the key.
|
Resolver |
createResolver(VariableScope variableScope) |
Object |
get(Object key)
Returns the object currently bound to the key or false if no object is currently bound
to the key
|
Set<String> |
keySet()
Returns the set of key that can be resolved using this resolver.
|
public SpringBeansResolverFactory(org.springframework.context.ApplicationContext applicationContext)
public Resolver createResolver(VariableScope variableScope)
createResolver
in interface ResolverFactory
public boolean containsKey(Object key)
Resolver
containsKey
in interface Resolver
key
- the key to checkpublic Object get(Object key)
Resolver
Copyright © 2021. All rights reserved.