org.iqual.chaplin
Annotation Type FromContext


@Target(value={FIELD,LOCAL_VARIABLE,METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface FromContext

This annotation marks a field in a class which is connected with the corresponding field in the context. User: zslajchrt Date: Mar 6, 2009 Time: 1:09:46 PM


Optional Element Summary
 AggregationType aggregation
           
 boolean async
          TODO - causes the message is processed asynchronously
 CachingMode cache
          Indicates the caching mode of the value after it has been obtained.
 boolean dynaSign
          Meaningful at methods only.
 long maxOccurs
           
 long minOccurs
           
 String name
           
 MessageScope scope
           
 Storage storage
           
 Class<? extends ReplyTransformer> transformer
           
 Class value
           
 

value

public abstract Class value
Returns:
the context class to which the field is connected.
Default:
void.class

dynaSign

public abstract boolean dynaSign
Meaningful at methods only. It declares that the signature of the context method is dynamically derived from the types of the actual arguments.

Returns:
Default:
false

minOccurs

public abstract long minOccurs
Returns:
the minimal number of elements in the context that matches this reference. In the case of context methods it indicates the minimal number of calls invoked. In the case of context fields it indicates the minimum number of matching values in the context.
Default:
1L

maxOccurs

public abstract long maxOccurs
Returns:
the maximal number of elements in the context that matches this reference. In the case of context methods it indicates the maximal number of calls invoked. In the case of context fields it indicates the maximum number of matching values in the context.
Default:
1L

name

public abstract String name
Returns:
the name of the message which is emitted as soon as the annotated member is accessed. It corresponds to the name property of the ToContext annotation.
See Also:
ToContext.name()
Default:
""

scope

public abstract MessageScope scope
Returns:
the scope of the emitted message. It determines which receivers will process the message. If a receiver is out of the scope it will not process the message.
Default:
local

aggregation

public abstract AggregationType aggregation
Returns:
Determines how multiple results of the context methods are aggregated
Default:
auto

async

public abstract boolean async
TODO - causes the message is processed asynchronously

Default:
false

transformer

public abstract Class<? extends ReplyTransformer> transformer
Returns:
the selector for selecting values from replies collected within a composite
Default:
org.iqual.chaplin.DefaultReplyTransformer.class

storage

public abstract Storage storage
Returns:
the storage where the field or method is looked for.
Default:
context

cache

public abstract CachingMode cache
Indicates the caching mode of the value after it has been obtained.

Returns:
Default:
global


Copyright © 2009 iquality.org. All Rights Reserved.