Class NewJobSender
java.lang.Object
org.apache.sling.event.impl.jobs.notifications.NewJobSender
- All Implemented Interfaces:
org.apache.sling.api.resource.observation.ExternalResourceChangeListener,org.apache.sling.api.resource.observation.ResourceChangeListener
public class NewJobSender
extends Object
implements org.apache.sling.api.resource.observation.ResourceChangeListener, org.apache.sling.api.resource.observation.ExternalResourceChangeListener
This component receives resource added events and sends a job
created event.
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.observation.ResourceChangeListener
CHANGE_ADDED, CHANGE_CHANGED, CHANGE_PROVIDER_ADDED, CHANGE_PROVIDER_REMOVED, CHANGE_REMOVED, CHANGES, PATHS, PROPERTY_NAMES_HINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.framework.BundleContext bundleContext) Activate this component.protected voidDeactivate this component.void
-
Constructor Details
-
NewJobSender
public NewJobSender()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext) Activate this component. Register an event handler. -
deactivate
protected void deactivate()Deactivate this component. Unregister the event handler. -
onChange
public void onChange(List<org.apache.sling.api.resource.observation.ResourceChange> resourceChanges) - Specified by:
onChangein interfaceorg.apache.sling.api.resource.observation.ResourceChangeListener
-