|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface IoCResource
This annotation can be used to bind a type to CruxIocContainer
For example, see the following class:
@IoCResourcepublic class MyClass {@Inject private MyService service; }
| Optional Element Summary | |
|---|---|
Class<?> |
bindClass
The implementation class created for the annotated class. |
Class<? extends IocProvider<?>> |
provider
A provider to instantiate the objects for the annotated class. |
boolean |
runtimeAccessible
If true, the annotated class would be accessible by IoCContainer at runtime. |
IoCResource.Scope |
scope
Defines the scope where the created object will be saved |
public abstract Class<? extends IocProvider<?>> provider
public abstract Class<?> bindClass
public abstract boolean runtimeAccessible
public abstract IoCResource.Scope scope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||