public Event toEvent()

in src/main/java/org/apache/sling/distribution/event/DistributionEvent.java [81:90]


    public Event toEvent(String topic) {
        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(DISTRIBUTION_PACKAGE_ID, packageId);
        props.put(DISTRIBUTION_COMPONENT_NAME, componentName);
        props.put(DISTRIBUTION_COMPONENT_KIND, componentKind);
        props.put(DISTRIBUTION_TYPE, distType);
        props.put(DISTRIBUTION_PATHS, distPaths);
        props.put(DISTRIBUTION_DEEP_PATHS, distDeepPaths);
        return new Event(topic, props);
    }