org.cruxframework.crux.core.client.ioc
Annotation Type Inject


@Retention(value=RUNTIME)
@Target(value={METHOD,PARAMETER,FIELD})
public @interface Inject

This annotation can be used to bind fields to objects according with CruxIocContainer configurations.

For example, see the following class:

 @Controller("myController")
 public class MyController
 {
    @Inject
    private MyService service; 
 }
 

Author:
Thiago da Rosa de Bustamante

Optional Element Summary
 Inject.Scope scope
          Deprecated. 
 String subscope
          Deprecated. 
 

scope

@Deprecated
public abstract Inject.Scope scope
Deprecated. 

Defines the scope where the created object will be saved

Default:
org.cruxframework.crux.core.client.ioc.Inject.Scope.DEFAULT

subscope

@Deprecated
public abstract String subscope
Deprecated. 

Used to create a custom scope inside one of the main scope, defined by the scope attribute.

Default:
""


Copyright © 2014. All rights reserved.