|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IvyObjectBuilder<T>
A IvyObjectBuilder
builds Ivy domain objects of type T
. You can influence the construction of the
Ivy objects by adding transformers to this builder. A transformer can either be a closure, or a Transformer
implementation. The transformers are called in the order added.
Method Summary | |
---|---|
void |
addIvyTransformer(Closure transformer)
Adds a transformation closure to this builder. |
void |
addIvyTransformer(Transformer<T> transformer)
Adds a transformer to this builder. |
Method Detail |
---|
void addIvyTransformer(Transformer<T> transformer)
Adds a transformer to this builder.
transformer
- The transformer to add.void addIvyTransformer(Closure transformer)
Adds a transformation closure to this builder. The closure is passed the object to transform as a parameter. The closure can return an object of type T, which will be used as the transformed value. The object to transform is also set as the delegate of the closure.
transformer
- The transformation closure to add.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |