jfun.yan.xml
Class Modes

java.lang.Object
  extended by jfun.yan.xml.Modes

public class Modes
extends java.lang.Object

Some common wiring modes.

Author:
Ben Yu Nov 16, 2005 11:00:43 AM

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

simple_singleton

public static final SingletonMode simple_singleton
The singleton mode.


thread_local_singleton

public static final SingletonMode thread_local_singleton
The thread local scope singleton mode.


params_bytype

public static ParameterBinder params_bytype
Wire parameters by type.


props_byname

public static PropertyBinder props_byname
Wire properties by name.


props_bytype

public static PropertyBinder props_bytype
Wire properties by type.


props_byqualifiedname

public static PropertyBinder props_byqualifiedname
Wire properties by fully qualified name.

For example, property balance in "com.ajoo.BankAccount" will resolve to a component named "com.ajoo.Bankaccount.balance".


props_autodetect

public static PropertyBinder props_autodetect
The autodetect mode.

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

Modes

public Modes()