AEM Services
Can we use @3214626 annotation in normal class or can we get osgi services in normal class in aem
Can we use @3214626 annotation in normal class or can we get osgi services in normal class in aem
What do you mean by "normal" class? If you mean plain Java classes POJO (Plain Old Java Object) the simple answer is No.
the @3214626 annotation is part of the OSGi Declarative Services (DS) specification. It is used to inject OSGi services into OSGi component classes, which are typically OSGi service components.
The @3214626 annotation cannot be used directly in a normal Java class because it is specifically meant for OSGi service components that are registered and managed by the OSGi framework. Normal Java classes are not part of the OSGi service registry, and hence, the @3214626 annotation is not applicable to them.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.