Package org.apache.felix.webconsole
Interface VariableResolver
-
- All Known Implementing Classes:
DefaultVariableResolver
@ConsumerType @Deprecated public interface VariableResolver
Deprecated.UseRequestVariableResolverinstead.TheVariableResolverinterface defines the API for an object which may be provided by plugins to provide replacement values for variables in the generated content.Plugins should call the
WebConsoleUtil.setVariableResolver(javax.servlet.ServletRequest, VariableResolver)method to provide their implementation for variable resolution.The main use of such a variable resolver is when a plugin is using a static template which provides slots to place dynamically generated content parts.
Note: The variable resolver must be set in the request before the response writer is retrieved calling the
ServletRequest.getWriter()method. Otherwise the variable resolver will not be used for resolving variables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Stringresolve(String variable)Deprecated.Returns a replacement value for the named variable ornullif no replacement is available.
-