public class ProvidedValueLoader extends DestroyableBase implements ParamValueLoader
Destroyable.Util
logger
NIL
Modifier and Type | Method and Description |
---|---|
java.lang.String |
bindName()
Returns the parameter binding name
|
static ProvidedValueLoader |
get(org.osgl.inject.BeanSpec beanSpec,
DependencyInjector<?> injector) |
java.lang.Object |
load(java.lang.Object bean,
ActContext<?> context,
boolean noDefaultValue)
Provide the value for a parameter from current execution context.
|
protected void |
releaseResources() |
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public java.lang.Object load(java.lang.Object bean, ActContext<?> context, boolean noDefaultValue)
ParamValueLoader
Provide the value for a parameter from current execution context.
The context could be one of
load
in interface ParamValueLoader
bean
- the bean that cached for current session or null
if not appliedcontext
- the current execution contextnoDefaultValue
- if true
then it shall not load default value when not provided by requestpublic java.lang.String bindName()
ParamValueLoader
Returns the parameter binding name
bindName
in interface ParamValueLoader
protected void releaseResources()
releaseResources
in class DestroyableBase
public static ProvidedValueLoader get(org.osgl.inject.BeanSpec beanSpec, DependencyInjector<?> injector)
Copyright © 2014–2017 ActFramework. All rights reserved.