Class PackageEventDispatcherImpl
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.events.impl.PackageEventDispatcherImpl
-
- All Implemented Interfaces:
PackageEventDispatcher
public class PackageEventDispatcherImpl extends Object implements PackageEventDispatcher
Packaging observation helper
-
-
Constructor Summary
Constructors Constructor Description PackageEventDispatcherImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindPackageEventListener(PackageEventListener listener, Map<String,Object> props)
Bind a new listenervoid
dispatch(PackageEvent.Type type, @NotNull PackageId id, @Nullable PackageId[] related)
Dispatches the events to the listeners.protected void
unbindPackageEventListener(PackageEventListener listener, Map<String,Object> props)
Unbinds a listener
-
-
-
Method Detail
-
bindPackageEventListener
public void bindPackageEventListener(PackageEventListener listener, Map<String,Object> props)
Bind a new listener- Parameters:
listener
- the processorprops
- service properties
-
unbindPackageEventListener
protected void unbindPackageEventListener(PackageEventListener listener, Map<String,Object> props)
Unbinds a listener- Parameters:
listener
- the processorprops
- service properties
-
dispatch
public void dispatch(@NotNull PackageEvent.Type type, @NotNull @NotNull PackageId id, @Nullable @Nullable PackageId[] related)
Description copied from interface:PackageEventDispatcher
Dispatches the events to the listeners.- Specified by:
dispatch
in interfacePackageEventDispatcher
- Parameters:
type
- Event typeid
- package idrelated
- related ids
-
-