|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransformerResolver
A TransformResolver is used to find transformers that match a certain criteria in the registry. Implementations of this interface will use some or all of the information passed in to discover a matching transformer.
Any implementations of this interface must be registered with the registry before it will get picked up. Typically this is done using theregistry-bootstrap.properties
.
Nested Class Summary | |
---|---|
static class |
TransformerResolver.RegistryAction
Possible registry actions that occur that will trigger an event fired via transformerChange(Transformer, RegistryAction) method. |
Method Summary | |
---|---|
Transformer |
resolve(DataType<?> source,
DataType<?> result)
Responsible for finding a transformer with the given criteria. |
void |
transformerChange(Transformer transformer,
TransformerResolver.RegistryAction registryAction)
A callback that is called when a transformer is registered or unregistered from the registry. |
Method Detail |
---|
Transformer resolve(DataType<?> source, DataType<?> result) throws ResolverException
source
- information about the source object including the object iselfresult
- information about the result object to transform to
ResolverException
- Only thrown if an exception is thrown during the
search, this exception will just be a wrappervoid transformerChange(Transformer transformer, TransformerResolver.RegistryAction registryAction)
transformer
- the transformer that has changedregistryAction
- whether the transformer was added or removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |