org.beanlet
Annotation Type MapValue


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

Represents a map of key/value entries.

See Also:
Entry, Inject

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

type

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

Default:
java.util.Map.class

value

public abstract Entry[] value
Contains all map entries.

Default:
{}

empty

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

Default:
false

unmodifiable

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

Default:
false

synced

public abstract boolean synced
true if the map is synchronized.

Default:
false


Copyright © 2006-2012. All Rights Reserved.