Hi everyone,
Can I add a custom property on my OSGI service?
ex.
@Properties({
@Property(name ="NewValue", intValue = 0, propertyPrivate = false, label="custom value")})
@Service
public class NameClass
If I can, How I access to the property in my source code?
Thanks,
Solved! Go to Solution.
Views
Replies
Total Likes
Yes - in your activate method, you can read the properties. Here's an example picked at random from ACS AEM Commons: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...
Views
Replies
Total Likes
Yes - in your activate method, you can read the properties. Here's an example picked at random from ACS AEM Commons: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...
Views
Replies
Total Likes
You can get using "properties.get(<propertyname>)"
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies