|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.xml.Modes
public class Modes
Some common wiring modes.
| Field Summary | |
|---|---|
static ParameterBinder |
params_bytype
Wire parameters by type. |
static PropertyBinder |
props_autodetect
The autodetect mode. |
static PropertyBinder |
props_byname
Wire properties by name. |
static PropertyBinder |
props_byqualifiedname
Wire properties by fully qualified name. |
static PropertyBinder |
props_bytype
Wire properties by type. |
static SingletonMode |
simple_singleton
The singleton mode. |
static SingletonMode |
thread_local_singleton
The thread local scope singleton mode. |
| Constructor Summary | |
|---|---|
Modes()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SingletonMode simple_singleton
public static final SingletonMode thread_local_singleton
public static ParameterBinder params_bytype
public static PropertyBinder props_byname
public static PropertyBinder props_bytype
public static PropertyBinder props_byqualifiedname
For example, property balance in "com.ajoo.BankAccount" will resolve to a component named "com.ajoo.Bankaccount.balance".
public static PropertyBinder props_autodetect
It will search by type first, if ambiguity happens or dependency not found, byname is used, then byqualifiedname, until the component is found.
| Constructor Detail |
|---|
public Modes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||