net.israfil.micro.container
Interface AutoWiringAdapter

All Superinterfaces:
ComponentFactory
All Known Implementing Classes:
AbstractAutoWiringAdapter, IndependentAutoWiringAdapter

public interface AutoWiringAdapter
extends ComponentFactory

An adapter interface that's used in the "AutoWiringContainer" to allow the user to specify a component's dependencies upon registration. This is not ideal, in that it's not auto-discovered constructor-based dependency injection, but since dynamic reflection is not available in the J2ME CLDC 1.1 spec, an alternate and generic injection mechanism is necessary. Implementors of this interface should be CLDC safe.

Author:
Christian Edward Gruber

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 interface net.israfil.micro.container.ComponentFactory
create
 

Method Detail

dependencies

java.lang.Object[] dependencies()
This method should return a list of keys defining the dependencies this object requires to operate.


getType

java.lang.Class getType()
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.



Copyright © 2008. All Rights Reserved.