public class HttpConnectionManagerActionFactory extends Object implements ActionFactory<ConnectionManagerFactory>
HttpConnectionManagerFactory
upon the first use. This instance will be used for all further
uses of this extension.Modifier and Type | Field and Description |
---|---|
private HttpConnectionManagerFactory |
factory |
Constructor and Description |
---|
HttpConnectionManagerActionFactory() |
Modifier and Type | Method and Description |
---|---|
ConnectionManagerFactory[] |
getActions(InvokationContext<? super ConnectionManagerFactory> context)
This method may be called one or several times for each request.
|
private void |
initFactory(InvokationContext context) |
boolean |
prepareContext(InvokationContext<? super ConnectionManagerFactory> context)
This method is called once for each request/use of an
extension and have two purposes:
The factory should decide if the extension should be enabled or
not.
|
private volatile HttpConnectionManagerFactory factory
public boolean prepareContext(InvokationContext<? super ConnectionManagerFactory> context)
ActionFactory
JspContext
.
prepareContext
in interface ActionFactory<ConnectionManagerFactory>
context
- The current invokation contextpublic ConnectionManagerFactory[] getActions(InvokationContext<? super ConnectionManagerFactory> context)
ActionFactory
getActions
in interface ActionFactory<ConnectionManagerFactory>
context
- The current invokation contextprivate void initFactory(InvokationContext context)