On Wed, Dec 30, 2009 at 3:29 PM, Alex Shneyderman
<[email protected]> wrote:
> Oh I think a better place for this additional method would be
> TBFactory as it have a new instance already just no initializer
> callback.

You mean;

@Structure
TransientBuilderFactory tbf;

return tbf.newInstance( Some.class, new Prototype<Some>()
{
    public void initialize( Some prototype )
    {
        :
    }
} );


I guess this boils down to personal preference.
Would it be Ok if we just make a utility for it instead?

@Structure
TransientBuilderFactory tbf;

return FactoryHelper.newInstance( tbf, Some.class, new Prototype<Some>()
{
    public void initialize( Some prototype )
    {
        :
    }
} );


I have no strong opinion for either way...


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to