jef.injection.impl
Class DefaultInjectorsFactory

java.lang.Object
  extended by jef.injection.impl.DefaultInjectorsFactory
All Implemented Interfaces:
InjectorsFactory

public class DefaultInjectorsFactory
extends java.lang.Object
implements InjectorsFactory

Default implementation of the InjectorsFactory interface. Since the returned implemetation of the Injector interface is thread-safe, this factory will actually return a singleton that can be safely used in multi-threaded environment.

Author:
Francesco Russo (frusso@dev.java.net)

Constructor Summary
DefaultInjectorsFactory()
          Creates a new instance of DefaultInjectorsFactory
 
Method Summary
 Injector getInstance()
          Produces an instance implementing the Injector interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInjectorsFactory

public DefaultInjectorsFactory()
Creates a new instance of DefaultInjectorsFactory

Method Detail

getInstance

public Injector getInstance()
Description copied from interface: InjectorsFactory
Produces an instance implementing the Injector interface.

Specified by:
getInstance in interface InjectorsFactory
Returns:
An injector