You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by Mi...@Sparkassen-Informatik.de on 2005/03/10 09:44:29 UTC
GoF-Naming: Isn't the AdapterRegistryFactory a StrategyRegistryFactory [Virus
checked]
I really like HiveMind and its support of patterns
you get from the PipelineFactory, ChainFactory,
AdapterRegistryFactory and others.
First time i tried the AdapterRegistryFactory i got a
little bit confused with zhe naming. Before that i used
a self-written HiveMind-Service comparable to the
eclipse AdapterFactory.
public interface AdapterFactory
{
public Object getAdapter(Object adaptableObject, Class adapterType);
}
I exptected the AdapterRegistryFactory to do the same.
But in IMHO the AdapterRegistryFactory behaves like a
StrategyRegistryFactory due to the GoF-Naming.
And one specialized use of the StrategyRegistryFactory
is to create a service with a service interface like
AdapterFactory.
Does anyone except me see the need to rename the thing?
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
Re: GoF-Naming: Isn't the AdapterRegistryFactory a StrategyRegistryFactory [Virus checked]
Posted by Howard Lewis Ship <hl...@gmail.com>.
I think you may be right! I hate to go through the process of
renaming it (again), but it may be the right thing to do.
On Thu, 10 Mar 2005 09:44:29 +0100,
Michael.Frericks@sparkassen-informatik.de
<Mi...@sparkassen-informatik.de> wrote:
> I really like HiveMind and its support of patterns
> you get from the PipelineFactory, ChainFactory,
> AdapterRegistryFactory and others.
>
> First time i tried the AdapterRegistryFactory i got a
> little bit confused with zhe naming. Before that i used
> a self-written HiveMind-Service comparable to the
> eclipse AdapterFactory.
>
> public interface AdapterFactory
> {
> public Object getAdapter(Object adaptableObject, Class adapterType);
> }
>
> I exptected the AdapterRegistryFactory to do the same.
> But in IMHO the AdapterRegistryFactory behaves like a
> StrategyRegistryFactory due to the GoF-Naming.
>
> And one specialized use of the StrategyRegistryFactory
> is to create a service with a service interface like
> AdapterFactory.
>
> Does anyone except me see the need to rename the thing?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org