org.vraptor.annotations
Annotation Type In


@Target(value=FIELD)
@Documented
@Retention(value=RUNTIME)
public @interface In

Describes a field where injection should be performed.

Author:
Guilherme Silveira

Optional Element Summary
 boolean create
          Should it be created if not found?
 String key
          Which key should be used (default to field name)
 boolean required
          Is it required?
 ScopeType scope
          Which scope should be used to search for the object
 

create

public abstract boolean create
Should it be created if not found?

Returns:
true or false
Default:
false

required

public abstract boolean required
Is it required?

Returns:
true or false
Default:
true

scope

public abstract ScopeType scope
Which scope should be used to search for the object

Returns:
scope
Default:
org.vraptor.scope.ScopeType.REQUEST

key

public abstract String key
Which key should be used (default to field name)

Returns:
key
Default:
""


Copyright © 2004-2008 VRaptor. All Rights Reserved.