Get component name at runtime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Get component name at runtime

Matthew Bertolini
Is there a way to get the name of the component the code is housed under? I need the name of the component where a given service method name is located. For example, if I have a service method foo that lives in component foobar, I would like to ask OFBiz for the component name r inside the service method or somewhere in the ServiceEngine.

Thanks

--Matt--
Reply | Threaded
Open this post in threaded view
|

Re: Get component name at runtime

Jacques Le Roux
Administrator
Have a look at  LabelManagerFactory.loadLabelFiles()

Jacques

Matthew Bertolini wrote:
> Is there a way to get the name of the component the code is housed under? I need the name of the component where a given service
> method name is located. For example, if I have a service method foo that lives in component foobar, I would like to ask OFBiz for
> the component name r inside the service method or somewhere in the ServiceEngine.  
>
> Thanks
>
> --Matt--