Class PublicationEvent


  • public class PublicationEvent
    extends org.osgi.service.event.Event
    Helper for generating OSGi Events for publication events
    • Method Detail

      • publish

        public static PublicationEvent publish​(PublishableResource resource,
                                               boolean deep)
        Creates an event to be fired when a publication occurs.
        Parameters:
        resource - the content published
        deep - if true publish the resource and all child resources
        Returns:
        the publish event
      • unpublish

        public static PublicationEvent unpublish​(PublishableResource resource,
                                                 boolean deep)
        Creates an event to be fired when a unpublish occurs.
        Parameters:
        resource - the content unpublish
        deep - if true unpublish the resource and all child resources
        Returns:
        the unpublish event