public class PolicyFactoryImpl extends Object implements IPolicyFactory
IPolicyFactory interface.| Constructor and Description |
|---|
PolicyFactoryImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doLoadFromClasspath(String policyImpl,
IAsyncResultHandler<IPolicy> handler)
Loads a policy from a class on the classpath.
|
Object |
loadConfig(IPolicy policy,
String configData)
Loads the given configuration data into a config object.
|
void |
loadPolicy(String policyImpl,
IAsyncResultHandler<IPolicy> handler)
Load a policy implementation asynchronously.
|
void |
setPluginRegistry(IPluginRegistry pluginRegistry) |
public void setPluginRegistry(IPluginRegistry pluginRegistry)
setPluginRegistry in interface IPolicyFactorypluginRegistry - the plugin registryIPolicyFactory.setPluginRegistry(io.apiman.gateway.engine.IPluginRegistry)public Object loadConfig(IPolicy policy, String configData)
IPolicyFactoryloadConfig in interface IPolicyFactorypolicy - the policyconfigData - the config dataIPolicyFactory.loadConfig(io.apiman.gateway.engine.policy.IPolicy, java.lang.String)public void loadPolicy(String policyImpl, IAsyncResultHandler<IPolicy> handler)
IPolicyFactoryloadPolicy in interface IPolicyFactorypolicyImpl - the policy implementationhandler - the result handlerIPolicyFactory.loadPolicy(java.lang.String, io.apiman.gateway.engine.async.IAsyncResultHandler)protected void doLoadFromClasspath(String policyImpl, IAsyncResultHandler<IPolicy> handler)
policyImpl - handler - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.