All Downloads are FREE. Search and download functionalities are using the official Maven repository.

run.halo.app.event.post.PostEvent Maven / Gradle / Ivy

The newest version!
package run.halo.app.event.post;

import org.springframework.context.ApplicationEvent;

/**
 * An abstract class for post events.
 *
 * @author johnniang
 */
public abstract class PostEvent extends ApplicationEvent {

    private final String name;

    public PostEvent(Object source, String name) {
        super(source);
        this.name = name;
    }

    /**
     * Gets post metadata name.
     *
     * @return post metadata name
     */
    public String getName() {
        return name;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy