T
- The specific type of TunableHandler
used to
process the tunables.S
- The type of configuration object returned by this
TunableMutator.public interface TunableMutator<T extends TunableHandler,S>
Tunable
annotation. Only one TunableMutator will be used by a given
TaskManager
, and that is defined by the TaskManager
itself. You control which TunableMutator gets used by choosing
the appropriate TaskManager.
When implementing this interface, it is recommended that you
use the AbstractTunableInterceptor
class to do so.Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
S |
buildConfiguration(Object o)
Returns the configuration object used to mutate the tunables.
|
void |
setConfigurationContext(Object o)
Used configure the TunableMutator so that it builds its
configuration object in the correct location.
|
boolean |
validateAndWriteBack(Object o)
This method is called to validate and then set the values for
fields and methods annotated with the
Tunable annotation. |
void setConfigurationContext(Object o)
o
- The context object in which the configuration will be built.S buildConfiguration(Object o)
o
- The object containing the fields and methods annotated
with the Tunable
annotation.boolean validateAndWriteBack(Object o)
Tunable
annotation.o
- The object containing the fields and methods annotated
with the Tunable
annotation.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.