org.fudgemsg.mapping
Annotation Type HasFudgeBuilder


@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface HasFudgeBuilder

An annotation that can be placed on any Java object to indicate that there is an instance of FudgeMessageBuilder or FudgeObjectBuilder (or a full FudgeBuilder) for that type. This will then be picked up at runtime and automatically configured for that type.

All parameters are optional, and only have default values of Object for convenience.


Optional Element Summary
 Class<?> builder
          A class that implements both FudgeMessageBuilder and FudgeObjectBuilder for the annotated type.
 Class<?> messageBuilder
          A class that implements FudgeMessageBuilder for the annotated type.
 Class<?> objectBuilder
          A class that implements FudgeObjectBuilder for the annotated type.
 

builder

public abstract Class<?> builder
A class that implements both FudgeMessageBuilder and FudgeObjectBuilder for the annotated type. Convenience method (much like the convenience type FudgeBuilder).

Default:
java.lang.Object.class

objectBuilder

public abstract Class<?> objectBuilder
A class that implements FudgeObjectBuilder for the annotated type.

Default:
java.lang.Object.class

messageBuilder

public abstract Class<?> messageBuilder
A class that implements FudgeMessageBuilder for the annotated type.

Default:
java.lang.Object.class


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0