net.israfil.micro.container
Interface ComponentFactory
- All Known Subinterfaces:
- AutoWiringAdapter
- All Known Implementing Classes:
- AbstractAutoWiringAdapter, IndependentAutoWiringAdapter
public interface 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 |
create(java.util.Hashtable parameters)
A method that implementors use to create a component given a set of
parameters. |
create
java.lang.Object create(java.util.Hashtable parameters)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
- A method that implementors use to create a component given a set of
parameters. Parameters and order should be assumed known
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright © 2008. All Rights Reserved.