Hello,

I was looking at the
org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector class
in order to get inspiration to do a ServiceSelector that must instanciate the
components it will give based on configuration.

Just to be sure that i did not miss anything... (because everything is not clear
to me)

With the sole framework:

* There is for now no possibility to implement a ServiceSelector without having
to do the lifestyle and lifecycle management "manually" ?

If yes,

* The core assembly will be integrated in the framework in order to enable
ServiceSelector implementors to delegate the lifestyle and lifecycle management ?

or,

* A single ContainerAbstraction service interface will be integrated in the
framework with no implementation, for any container to implement ?

If it is the second solution that has been choosen (in order to not impose too
much coopling between containers and framework), i can't find any interface for
that kind of service. As i need it, i try to specify it for it to be enough
general. Could you give me some advices ??

public interface ContainerAbstraction
{
    public Object get(String implementationKey,
        Context context, Logger logger, Configuration configuration);

    public void release(Object object);
}

where implementationKey is the className
and context, logger, and configuration can be null.

I wanted it to be simple in order to simplify ServiceSelector implementation.

Thanks. Didier.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to