@Retention(value=RUNTIME) @Target(value={METHOD,PARAMETER,FIELD}) public @interface Inject
For example, see the following class:
@Controller("myController") public class MyController {@Inject private MyService service; }
| Modifier and Type | Optional Element and Description |
|---|---|
Inject.Scope |
scope
Defines the scope where the created object will be saved
|
String |
subscope
Used to create a custom scope inside one of the main scope, defined by the scope attribute.
|
public abstract Inject.Scope scope
public abstract String subscope
Copyright © 2014. All rights reserved.