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

org.beanfabrics.context.ServiceAddedEvent Maven / Gradle / Ivy

Go to download

Beanfabrics is a component framework for building Java desktop applications according to the Presentation Model Pattern with Swing.

There is a newer version: 1.5.0
Show newest version
/*
 * Beanfabrics Framework Copyright (C) by Michael Karneim, beanfabrics.org
 * Use is subject to license terms. See license.txt.
 */
package org.beanfabrics.context;

/**
 * An event which indicates that a service entry has been added to the event
 * source.
 * 
 * @author Michael Karneim
 */
@SuppressWarnings("serial")
public class ServiceAddedEvent extends ContextEvent {
    private final ServiceEntry serviceEntry;

    /**
     * Constructs a {@link ServiceAddedEvent}.
     * 
     * @param source
     * @param serviceEntry
     */
    public ServiceAddedEvent(Context source, ServiceEntry serviceEntry) {
        super(source);
        this.serviceEntry = serviceEntry;
    }

    /**
     * Returns the service entry that has been added to this event's source.
     * 
     * @return the service entry that has been added to this event's source
     */
    public ServiceEntry getServiceEntry() {
        return serviceEntry;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy