Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Component xxxx is using the deprecated inheritance feature and inherits from yyyy. This feature will be removed in future versions. (org.apache.felix:maven-scr-plugin:1.21.0:scr:generate-scr-descriptor:process-classes)

Avatar

Level 1

I'm using osgi ds annotations in class "OfflineBxCache " whereas the inheriatance feature of this class follows felix scr annotations. Because of that ,it is showing "

Class 'com.ericsson.bss.rm.charging.configcache.impl.AbstractConfigCache' contains SCR annotations, but not a @Component (or equivalent) annotation. Therefore no component descriptor is created for this class. Please add a @Component annotation and consider making it abstract. (org.apache.felix:maven-scr-plugin:

1.24.0:scr:generate-scr-scrdescriptor:process-classes)". How to resolve it

@Component (name = "Charging-OfflineBxServiceContextCache", xmlns = "http://www.osgi.org/xmlns/scr/v1.2.0", immediate = true,

        configurationPolicy = OPTIONAL, service = {ServiceContextConfigurationCache.class})

public class OfflineBxCache extends BaseServiceContextCache

{

   

}

public abstract class BaseServiceContextCache extends AbstractMultiValueConfigCache<String, ServiceContextConfiguration>

        implements ServiceContextConfigurationCache, CacheInvalidationMarker

{

}

public abstract class AbstractMultiValueConfigCache<K, T> extends AbstractConfigCache<K, T> implements MultiValueConfigCache<K, T>

{

}

@Component (ds = true, immediate = true, name = "AbstractConfigCache", componentAbstract = true, specVersion = "1.2")

public abstract class AbstractConfigCache<K, T> implements ConfigurationListener

{

}

0 Replies