org.beanlet
Annotation Type CollectionValue


@Retention(value=RUNTIME)
@Target(value={})
public @interface CollectionValue

Represents a collection of values.

See Also:
Inject

Optional Element Summary
 boolean empty
          true if annotation represents an empty collection.
 boolean synced
          true if the collection is synchronized.
 Class<? extends Collection> type
          Specifies the collection type that is to be constructed.
 boolean unmodifiable
          true if the collection is unmodifiable after injection.
 Value[] value
          Contains all collection values.
 

type

public abstract Class<? extends Collection> type
Specifies the collection type that is to be constructed. This value must be set to a concrete class, or to the Collection interface, in which case the collection type is inferred from the member to be injected.

Default:
java.util.Collection.class

value

public abstract Value[] value
Contains all collection values.

Default:
{}

empty

public abstract boolean empty
true if annotation represents an empty collection.

Default:
false

unmodifiable

public abstract boolean unmodifiable
true if the collection is unmodifiable after injection.

Default:
false

synced

public abstract boolean synced
true if the collection is synchronized.

Default:
false


Copyright © 2006-2012. All Rights Reserved.