OutputListItemToInputTransform Class
- public class OutputListItemToInputTransform
extends OutputToInputTransform
This is an AdviceTransform that takes the last RESULT key
(getResult return value) from the Advice object and puts it into
the key specified in the "output-key" parameter field in the
AdviceRequest. Additionally, if the result object is a List only
the first item of the List is added to the AdviceRequest.
If the Advice is null or incomplete no transformation
is performed.
-
Hierarchy
-
Object
AbstractAdviceTransform
OutputToInputTransform
OutputListItemToInputTransform
-
All Implemented Interfaces
-
AdviceConstants, AdviceRequestConstants, AdviceTransform, AdvisletChainElement
public void |
-
transform(Advice input, AdviceRequest output)
- Transforms the given
Advice into AdviceRequest
to pass it to another Advisor in the advislet chain defined in the
advislet registry.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputListItemToInputTransform
public OutputListItemToInputTransform(Advisor advisor,
Metadata metadata)
- Construct an instance of this object and bind it to
its
Advisor and Metadata instances.
transform(Advice, AdviceRequest) Method
public void transform(Advice input,
AdviceRequest output)
throws AdvisorException
Description copied from AbstractAdviceTransform.transform(Advice, AdviceRequest)
Transforms the given Advice into AdviceRequest
to pass it to another Advisor in the advislet chain defined in the
advislet registry.
-
Overrides
-
OutputToInputTransform.transform(Advice, AdviceRequest)
Parameters
-
input
- An
Advice from which the parameters are extracted and transformed.
-
output
- An
AdviceRequest that is prepared from the given Advice.
Exceptions
-
AdvisorException