As we know that in this digital era portability is in demand. Every business associate have to be in touch with their business on the go. So to make AEM more compatible with palm devices(mobile /tablet) the drift is towards touch ui aspect of experience manager.
There are few changes to the way services, workflows are handled. SCR annotations (org.apache.felix.scr.annotations.*) are replaced by OSGi annotations(org.osgi.service.component.annotations.*).
The release notes for AEM 6.3 is available at
https://helpx.adobe.com/experience-manager/6-3/release-notes.html
Osgi Component and Service
Implementing Servlets
Implementing Workflow Process Step
There are few changes to the way services, workflows are handled. SCR annotations (org.apache.felix.scr.annotations.*) are replaced by OSGi annotations(org.osgi.service.component.annotations.*).
The release notes for AEM 6.3 is available at
https://helpx.adobe.com/experience-manager/6-3/release-notes.html
Osgi Component and Service
@Component(name=”Demo Service”
service=DemoService.class,immediate=true)
public class DemoService {
public
String getValue()
{
return "DemoService";
}
}
Implementing Servlets
@Component(service=Servlet.class,
property={
Constants.SERVICE_DESCRIPTION
+ "=Demo Servlet",
"sling.servlet.methods="
+ HttpConstants.METHOD_GET,
"sling.servlet.resourceTypes="+
"com.demo.osgiannotation/components/structure/page",
"sling.servlet.paths="+
"/bin/servlet",
"sling.servlet.extensions="
+ "txt"
})
public class DemoServlet extends
SlingSafeMethodsServlet {
{
@Override
protected void
doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)throws
IOException
{
response.getWriter().print("This
get method is from the servlet");
}
}
Implementing Workflow Process Step
@Component(service = WorkflowProcess.class, property = {"process.label=Activate Page" })
public class DemoWorkflow implements WorkflowProcess {
public void execute(WorkItem workitem, WorkflowSession wfsession,MetaDataMap metaDataMap)
{
log.info(“This execute method is from Workflow”);
}
}
No comments:
Post a Comment