public class DefaultComponentRegistry extends Object implements IComponentRegistry
| Constructor and Description |
|---|
DefaultComponentRegistry()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends IComponent> |
addComponent(Class<T> componentType,
T component)
Adds a component to the registry.
|
<T extends IComponent> |
getComponent(Class<T> componentType)
Gets a specific type of component from the registry.
|
Collection<IComponent> |
getComponents() |
protected void |
registerBufferFactoryComponent() |
protected void |
registerCacheStoreComponent() |
protected void |
registerHttpClientComponent() |
protected void |
registerPolicyFailureFactoryComponent() |
protected void |
registerRateLimiterComponent() |
protected void |
registerSharedStateComponent() |
public Collection<IComponent> getComponents()
getComponents in interface IComponentRegistryIComponentRegistry.getComponents()protected void registerHttpClientComponent()
protected void registerBufferFactoryComponent()
protected void registerPolicyFailureFactoryComponent()
protected void registerRateLimiterComponent()
protected void registerSharedStateComponent()
protected void registerCacheStoreComponent()
protected <T extends IComponent> void addComponent(Class<T> componentType, T component)
componentType - component - public <T extends IComponent> T getComponent(Class<T> componentType) throws io.apiman.gateway.engine.beans.exceptions.ComponentNotFoundException
IComponentRegistrygetComponent in interface IComponentRegistrycomponentType - the component typeio.apiman.gateway.engine.beans.exceptions.ComponentNotFoundException - when component not foundIComponentRegistry.getComponent(java.lang.Class)Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.