since ‎29-09-2017
‎10-12-2019
poojav77731677
Level 1
listeners
Avatar

poojav77731677

poojav77731677
- Adobe Experience Manager
What would be the difference between name:listeners and type: nt:unstructured listener and name:cq:listeners and type:cq:EditListenersConfig listener. Please throw some light.

Views

2.9K

Like

1

Replies

3
Re: unsatisfied service
Avatar

poojav77731677

poojav77731677
- Adobe Experience Manager
I have written an implementation class as below:import org.apache.felix.scr.annotations.Component;import org.apache.felix.scr.annotations.Service;@Component(metatype=true)@Servicepublic class Name1Impl implements Name1 { String name; public String getName() { return name; } public void setName(String name) { this.name=name; }}And changed my existing class according:public class trialServlet extends SlingAllMethodsServlet { @Reference Name1Impl varname; @Override protected void doGet(SlingHttpSer...

Views

2.1K

Likes

0

Replies

0
Re: unsatisfied service
Avatar

poojav77731677

poojav77731677
- Adobe Experience Manager
I'm using @Reference to inject the service Name1. Here's the interface Name1:public interface Name1 { String getName(); void setName(String name);}Please let me know if this initialisation is right.

Views

2.0K

Likes

0

Replies

0
unsatisfied service
Avatar

poojav77731677

poojav77731677
- Adobe Experience Manager
Hi,The below is my customised servlet :@SuppressWarnings("serial")@SlingServlet(paths="/services/trialServlet",methods="GET")public class trialServlet extends SlingAllMethodsServlet { @Reference Name1 varname; @Override protected void doGet(SlingHttpServletRequest request,SlingHttpServletResponse response)throws ServletException,IOException { String test; test=request.getParameter("name"); try { response.getWriter().write("test"); } catch (IOException e) { // TODO Auto-generated catch block e.pr...

Views

4.8K

Like

1

Replies

8
Likes given to
Likes from