T- The specific type of
TunableHandlerthat will be created by this factory.
public interface TunableHandlerFactory<T extends TunableHandler>
TunableHandlerfor a single type of object, determined by the type of the field or the return value of the getter method in the appropriate methods. Each type of object (int, float, String) generally needs a different implementation of this interface. Each implementation is expected to be registered as an OSGi service. TunableInterceptors register the TunableHandlerFactory services of the appropriate type.
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|
This method returns a
TunableHandlerfor a field annotated as a
Tunableif this factory can produce an appropriate handler for this type of field. If the factory cannot produce an appropriate handler, it will return null.
field- Field that needs to be handled.
instance- The object on which we want to read/write the Field.
tunable- Tunable that contains all the information concerning the user interface.
TunableHandleror null if this factory can't handle a field of the specified type.
TunableHandlerfor a method annotated as a
Tunableif this factory can produce an appropriate handler for this type of method. If the factory cannot produce an appropriate handler, it will return null.
Tunableannotation, however the method must take a single argument of the same type as the getter method, it must return void, it must be named with the prefix "set", and the rest of the name must match that of the getter method. See
Tunablefor an example.
getter- A getter method that has been annotated with
setter- A setter method that matches the getter method.
instance- The object on which we want to invoke the
tunable- The Tunable that contains all the information concerning the user interface from the getter method.
TunableHandleror null if this factory can't handle the specified type.
Copyright 2011 Cytoscape Consortium. All rights reserved.