I have written a background service which extends AbstractService.I have defined some properties in this service which i need to access for example startday of the service.
Is there any API which would return the service object properties if i give the class name of the service or anything??
I found a solution to use ApplicationProperties APi to access this value.Thanks.
Hi,
AbstractService has a numerous "getProperty" type methods that you can use to retrieve service parameters upon the key of the parameter.
Cheers,
Tibor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to access this values outside this class, in a different plugin.I have imported the plugin via component-import method i need to access the method/variable thats hold the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.