Java Deprecated Inheritance Feature

Avatar

Avatar

Gdubz-57m2mu

Avatar

Gdubz-57m2mu

Gdubz-57m2mu

09-11-2016

Hi there!

I was attempting to recreate/experiment/learn more about the Social Component Framework and getting the following warning from Maven on build:

[WARNING] C:\Projects\my-project\core\src\main\java\com\sample-project\my-project\core\servlets\SetStatusOperation.java [1:1]:  Component com.sample-project.my-project.core.servlets.SetStatusOperation is using the deprecated inheritance feature and inherits from com.adobe.cq.social.scf.core.operations.AbstractSocialOperation. This feature will be removed in future versions.

From the following class[1]:

public class SetStatusOperation extends AbstractSocialOperation implements PostOperation { // ... }

I know it's just a warning, but since I'm just getting started with this now, I'm wondering if there's some new AbstractSocialOperation class we should be using?

For reference: I'm using AEM 6.2 with the latest Communities Feature Pack (FP1)[2]

[1] https://github.com/Adobe-Marketing-Cloud/aem-scf-sample-components-extension/blob/master/bundles/aem...
[2] https://repo.adobe.com/nexus/content/repositories/releases/com/adobe/cq/social/cq-socialcommunities-...

View Entire Topic

Avatar

Avatar

JK_Kendall

Avatar

JK_Kendall

JK_Kendall

10-11-2016

Hi Greg,

An updated TodoMVC example is available on GitHub (still a work in process).

"SCF+SRP implementation of ToDo MVC Demostrates how to develop a SCF+SRP component from scratch"

See the use of ResourceResolverFactory and SocialResourceProvider.

Be aware that the API docs available from docs.adobe.com reflect the 6.2 GA release (Communities 1.9.xxx).  The API docs for Communities feature packs (1.10.xxx) will be available through your dev environment (IDE).

We hope this is helpful.

- JK