Property in OSGI

Avatar

Avatar
Validate 10
Level 2
avalers
Level 2

Likes

4 likes

Total Posts

34 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 10
Level 2
avalers
Level 2

Likes

4 likes

Total Posts

34 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
avalers
Level 2

15-10-2015

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,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

Answers (0)