Package org.aeonbits.owner.event

Examples of org.aeonbits.owner.event.ReloadEvent


        writeLock.lock();
        try {
            Properties loaded = load(new Properties());
            List<PropertyChangeEvent> events =
                    fireBeforePropertyChangeEvents(keys(properties, loaded), properties, loaded);
            ReloadEvent reloadEvent = fireBeforeReloadEvent(events, properties, loaded);
            applyPropertyChangeEvents(events);
            firePropertyChangeEvents(events);
            fireReloadEvent(reloadEvent);
        } catch (RollbackBatchException e) {
            ignore();
View Full Code Here


            listener.reloadPerformed(reloadEvent);
    }

    private ReloadEvent fireBeforeReloadEvent(List<PropertyChangeEvent> events, Properties oldProperties,
                                              Properties newProperties) throws RollbackBatchException {
        ReloadEvent reloadEvent = new ReloadEvent(proxy, events, oldProperties, newProperties);
        for (ReloadListener listener : reloadListeners)
            if (listener instanceof TransactionalReloadListener)
                ((TransactionalReloadListener) listener).beforeReload(reloadEvent);
        return reloadEvent;
    }
View Full Code Here

    }

    private Matcher<ReloadEvent> isReloadListnerWithSource(final ReloadableConfig cfg) {
        return new BaseMatcher<ReloadEvent>() {
            public boolean matches(Object o) {
                ReloadEvent given = (ReloadEvent) o;
                return given.getSource() == cfg;
            }

            public void describeTo(Description description) {
                description.appendText("does not match");
            }
View Full Code Here

TOP

Related Classes of org.aeonbits.owner.event.ReloadEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.