|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cytoscape.work.AbstractTunableInterceptor<T>
T
- The generic type of this AbstractTunableInterceptor.public abstract class AbstractTunableInterceptor<T extends TunableHandler>
An abstract base class for TunableRecorder and TunableMutator implementations.
This class provides a method for checking whether a field or method has been
annotated with Tunable
and another method for returning the
appropriate TunableHandler
s for the field for method.
This class provides methods for adding and removing TunableHandlerFactory
OSGi services where the TunableHandler
s generated by the factory are of
type T.
Field Summary | |
---|---|
protected Map<Object,List<T>> |
handlerMap
Store the Handlers. |
protected Map<Object,Method> |
titleProviderMap
Store the title-returning methods. |
protected List<TunableHandlerFactory<T>> |
tunableHandlerFactories
A list of TunableHandlerFactory services that have been registered. |
Constructor Summary | |
---|---|
AbstractTunableInterceptor()
Creates a new AbstractTunableInterceptor object. |
Method Summary | |
---|---|
void |
addTunableHandlerFactory(TunableHandlerFactory<T> thf,
Map properties)
Allows TunableHandlerFactory services to be added to the list of factories used to process Tunables. |
List<T> |
getHandlers(Object o)
Returns a list of TunableHandler objects that have been found to process
the fields and methods annotated with Tunable . |
boolean |
hasTunables(Object o)
Tests an object to see if any of its fields or method have Tunable annotations. |
void |
removeTunableHandlerFactory(TunableHandlerFactory<T> thf,
Map properties)
Allows TunableHandlerFactory services to be removed from the list of factories used to process Tunables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map<Object,List<T extends TunableHandler>> handlerMap
protected final Map<Object,Method> titleProviderMap
protected final List<TunableHandlerFactory<T extends TunableHandler>> tunableHandlerFactories
Constructor Detail |
---|
public AbstractTunableInterceptor()
Method Detail |
---|
public final List<T> getHandlers(Object o)
TunableHandler
objects that have been found to process
the fields and methods annotated with Tunable
.
o
- The object whose fields and methods will be searched for Tunable
annotations.
TunableHandler
objects that have been
found to process the fields and methods annotated with Tunable
.public boolean hasTunables(Object o)
Tunable
annotations.
o
- The object whose fields and methods should be evaluated for Tunable
annotations.
Tunable
otherwise false.public void addTunableHandlerFactory(TunableHandlerFactory<T> thf, Map properties)
thf
- The factory to be added.properties
- OSGi service metadata. May be null.public void removeTunableHandlerFactory(TunableHandlerFactory<T> thf, Map properties)
thf
- The factory to be removed.properties
- OSGi service metadata. May be null.
|
Cytoscape 3.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |