[ http://issues.apache.org/jira/browse/HIVEMIND-71?page=comments#action_64470 ] Knut Wannheden commented on HIVEMIND-71: ----------------------------------------
IMHO this translator isn't needed in HiveMind. For one thing it is very easy to implement (as demonstrated), but more importantly I think it will / should be very rarely used as a service with a HiveMind translator injected into it is then HiveMind dependent. Maybe I'm narrow minded here. Can someone provide a good use case? > TranslatorProviced > ------------------ > > Key: HIVEMIND-71 > URL: http://issues.apache.org/jira/browse/HIVEMIND-71 > Project: HiveMind > Type: Improvement > Components: framework > Reporter: Istvan Orban > Attachments: TranslatorObjectProvider.java > > Hello Everybody. > I needed to access the Translators for my services. so I though it would be > great to have an Object provider next to the existing ones (configuration, > service, etc...) which gives access to the avialable Translators. > so now You can write new translators and access them easily with the prefix > translator > - I wrote a new provider: TranslatorObjectProvider > - I added one item to the hivemind.ObjectProviders > <provider prefix="translator" service-id="TranslatorProvider"/> > - and I wrote a new service > <service-point id="TranslatorProvider" > interface="org.apache.hivemind.service.ObjectProvider"> > Provides translators for servces > <create-instance class="<create-instance > class="org.apache.hivemind.service.impl.TranslatorObjectProvider"/> > </service-point> > after having adding this. > I can access any translator the following way > translator:int, translator:boolean etc.... > I hope this was the right way to do. Maybe it would be nice to have this > builtin. I'm not sure... > ps: see files attached. > Istvano > see files attached -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
