public abstract class CircuitCache
extends java.lang.Object
Constructor and Description |
---|
CircuitCache() |
Modifier and Type | Method and Description |
---|---|
protected void |
constructParentCircuitContainers(EntityStore es,
CircuitImpl circuit) |
abstract FilterContainerImpl |
create(Filter f,
ESPK circuitPK)
Implemented by subclasses to perform the factory operation.
|
abstract Filter |
createFilter(ConfigContext ctx,
Entity filterEntity) |
void |
flush()
Reset the cache of circuits
|
protected FilterContainerImpl |
forClass(java.lang.Class<? extends FilterContainerImpl> klass,
Filter filter,
ESPK circuitPK)
Utility method for producing a filter container using the
default constructor for a
Class object. |
Circuit |
getCircuit(ESPK pk) |
void |
setPack(ConfigContext pack) |
public abstract FilterContainerImpl create(Filter f, ESPK circuitPK) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
f
- Filter to wrapcircuitPK
- The PK of the filter's owner Circuit
java.lang.InstantiationException
- If the Filter's class cannot be instantiated.java.lang.IllegalAccessException
- If there's a security issue when instantiating the Filter instance.java.lang.ClassNotFoundException
- If the implementation class is unkown to the Classloader.protected FilterContainerImpl forClass(java.lang.Class<? extends FilterContainerImpl> klass, Filter filter, ESPK circuitPK) throws java.lang.InstantiationException, java.lang.IllegalAccessException
Class
object.klass
- The class (should implement FilterContainerImpl
filter
- The generic Filter object which holds common configuration for runtime and design time.circuitPK
- The PK of the filter's owner Circuit
java.lang.InstantiationException
- If the Filter's class cannot be instantiated.java.lang.IllegalAccessException
- If there's a security issue when instantiating the Filter instance.protected void constructParentCircuitContainers(EntityStore es, CircuitImpl circuit) throws EntityStoreException
EntityStoreException
public void setPack(ConfigContext pack)
public void flush()
public abstract Filter createFilter(ConfigContext ctx, Entity filterEntity) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel