[picocontainer-dev] Request: Add public getParameters() to ComponentAdapter interface.
"Michael Rimov" <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Organization | Centerline Computers, Inc |
| Message-ID | <02ee01c6611d$3a0a57a0$651ea8c0@prosperity> |
I was working on an updated GroovyScriptGenerator and noticed that it was
impossible to write component registrations that had parameters.
After digging through the source code, AFAICT, there is no way to get at the
parameters that were passed in to the registerComponentImplementation()
methods.
I would like to propose the new method signature:
Parameter[] getComponentParameters();
If no parameters were set during the call, it will return new Parameter[0];
That way, the instantiating component adapters can create their own default
parameters if none were sent in, yet it allows querying of what it took to
create the picocontainer in the first place.
Would there be any objections to this addition?
-Mike