Hi,
I have two OSGI Component classes with implementing the same interface.
Class WordsValidatorImpl implements ContentValidators {
void validate() {}
}
Class ActivationValidatorImpl implements ContentValidators {
void validate() {}
}
I need call the validate() method on both the classes. How to do that?
@Reference ContentValidators contentValidators;
If I call contentValidators.validate() only method in one component is getting called, instead of two.
thanks
Srini
Solved! Go to Solution.
Views
Replies
Total Likes
See this article - it will show you what to do.
http://scottsdigitalcommunity.blogspot.ca/2017/03/managing-adobe-experience-manager-osgi.html
You need to use target - as discussed in that article.
Views
Replies
Total Likes
See this article - it will show you what to do.
http://scottsdigitalcommunity.blogspot.ca/2017/03/managing-adobe-experience-manager-osgi.html
You need to use target - as discussed in that article.
Views
Replies
Total Likes
One way would be to create a contentValidatorManager service that keeps track of all the contentValidators as they are registered. Then instead of referencing contentValidators you reference contentValidatorsManager and call a new validatorAllValidators() that would loop through all registered validators.
References
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies