You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Istvan Orban <is...@mailbox.hu> on 2004/10/20 15:30:04 UTC

adding a new hivemind.ObjectProviders which provides installed Transaltors to any service

Hi,

I had a question about how to use the hivemind built in "Translators". 
After having tried some solutions I come to the point where I felt
I should extend the ObjectProviders to achive my goal.

I would like to have the possibility to pass translators to My Services 
as parameters ( See the "question about Transaltor" item I posted into 
the forum http://article.gmane.org/gmane.comp.jakarta.hivemind.user/331 )

we have already these Service prefixes.

    * <provider prefix="service" service-id="ServiceObjectProvider" />
    * <provider prefix="configuration"
      service-id="ConfigurationObjectProvider" />
    * <provider prefix="instance"
      service-id="ObjectInstanceObjectProvider" />
    * <provider prefix="service-property"
      service-id="ServicePropertyObjectProvider" />


I'm just wondering if it's a good idea to have a new Object provider 
which would look like this

    * <provider prefix="Translator" service-id="TranslatorObjectProvider" />

I'm willing to write this, if someone gives me some hints how/where to 
start..
how is the best to do this???????????

-how can I access all the configured Translators inside my ObjectProvider???

Thanks a lot!

IStvano





---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: adding a new hivemind.ObjectProviders which provides installed Transaltors to any service

Posted by Knut Wannheden <kn...@gmail.com>.
Istvan,

There is a configuration point "hivemind.Translators" (see
http://jakarta.apache.org/hivemind/hivedocs/config/hivemind.Translators.html).
 You should be able to inject that into your object provider service
implementation.  You register your object provider with the
hivemind.ObjectProviders configuration point.

Good luck!

--knut

On Wed, 20 Oct 2004 15:30:04 +0200, Istvan Orban <is...@mailbox.hu> wrote:
> Hi,
> 
> I had a question about how to use the hivemind built in "Translators".
> After having tried some solutions I come to the point where I felt
> I should extend the ObjectProviders to achive my goal.
> 
> I would like to have the possibility to pass translators to My Services
> as parameters ( See the "question about Transaltor" item I posted into
> the forum http://article.gmane.org/gmane.comp.jakarta.hivemind.user/331 )
> 
> we have already these Service prefixes.
> 
>     * <provider prefix="service" service-id="ServiceObjectProvider" />
>     * <provider prefix="configuration"
>       service-id="ConfigurationObjectProvider" />
>     * <provider prefix="instance"
>       service-id="ObjectInstanceObjectProvider" />
>     * <provider prefix="service-property"
>       service-id="ServicePropertyObjectProvider" />
> 
> I'm just wondering if it's a good idea to have a new Object provider
> which would look like this
> 
>     * <provider prefix="Translator" service-id="TranslatorObjectProvider" />
> 
> I'm willing to write this, if someone gives me some hints how/where to
> start..
> how is the best to do this???????????
> 
> -how can I access all the configured Translators inside my ObjectProvider???
> 
> Thanks a lot!
> 
> IStvano
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org