net.israfil.micro.container.adapters
Class AbstractAutoWiringAdapter

java.lang.Object
  extended by net.israfil.micro.container.adapters.AbstractAutoWiringAdapter
All Implemented Interfaces:
AutoWiringAdapter, ComponentFactory
Direct Known Subclasses:
IndependentAutoWiringAdapter

public abstract class AbstractAutoWiringAdapter
extends java.lang.Object
implements AutoWiringAdapter

A convenience implementation of AutoWiringAdapter which can be used for those clases that have no dependencies and have a default constructor.

Author:
Christian Edward Gruber

Constructor Summary
AbstractAutoWiringAdapter(java.lang.Class type, java.lang.Object[] dependencies)
           
 
Method Summary
 java.lang.Object[] dependencies()
          This method should return a list of keys defining the dependencies this object requires to operate.
 java.lang.Class getType()
          Returns the type that this adapter will create.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.israfil.micro.container.ComponentFactory
create
 

Constructor Detail

AbstractAutoWiringAdapter

public AbstractAutoWiringAdapter(java.lang.Class type,
                                 java.lang.Object[] dependencies)
Method Detail

dependencies

public java.lang.Object[] dependencies()
Description copied from interface: AutoWiringAdapter
This method should return a list of keys defining the dependencies this object requires to operate.

Specified by:
dependencies in interface AutoWiringAdapter

getType

public java.lang.Class getType()
Description copied from interface: AutoWiringAdapter
Returns the type that this adapter will create. This should be the most concrete type this adapter will create, if there is more than one possibility.

Specified by:
getType in interface AutoWiringAdapter


Copyright © 2008. All Rights Reserved.