Examples of RegistrationEvent


Examples of org.codehaus.xfire.service.event.RegistrationEvent

        qname2service.put(endpoint.getName(), endpoint);

        for (Iterator iterator = eventListeners.iterator(); iterator.hasNext();)
        {
            RegistrationEventListener listener = (RegistrationEventListener) iterator.next();
            RegistrationEvent event = new RegistrationEvent(this, endpoint);
            listener.endpointRegistered(event);
        }
    }
View Full Code Here

Examples of org.codehaus.xfire.service.event.RegistrationEvent

    public void unregister(Service endpoint)
    {
        for (Iterator iterator = eventListeners.iterator(); iterator.hasNext();)
        {
            RegistrationEventListener listener = (RegistrationEventListener) iterator.next();
            RegistrationEvent event = new RegistrationEvent(this, endpoint);
            listener.endpointUnregistered(event);
        }

        if (name2service.containsValue(endpoint))
            name2service.remove(endpoint.getSimpleName());
View Full Code Here

Examples of org.flexdock.event.RegistrationEvent

        // ID-caching)
        DockablePropertySet props = PropertyManager
                                    .getDockablePropertySet(dockable);

        // dispatch a registration event
        EventManager.dispatch(new RegistrationEvent(dockable,
                              DockingManager.SINGLETON, true));

        // return the dockable
        return dockable;
    }
View Full Code Here

Examples of org.flexdock.event.RegistrationEvent

        synchronized (DOCKABLES_BY_ID) {
            DOCKABLES_BY_ID.remove(dockable.getPersistentId());
        }

        // dispatch a registration event
        EventManager.dispatch(new RegistrationEvent(dockable,
                              DockingManager.SINGLETON, false));
    }
View Full Code Here

Examples of org.flexdock.event.RegistrationEvent

        m_perspectives.put(perspective.getPersistentId(), perspective);
        if(isDefault)
            setDefaultPerspective(perspective.getPersistentId());

        EventManager.dispatch(new RegistrationEvent(perspective, this, true));
    }
View Full Code Here

Examples of org.flexdock.event.RegistrationEvent

        //set defaultPerspective
        if(m_defaultPerspective.equals(perspectiveId))
            setDefaultPerspective(EMPTY_PERSPECTIVE);

        EventManager.dispatch(new RegistrationEvent(perspective, this, false));
    }
View Full Code Here

Examples of org.flexdock.perspective.event.RegistrationEvent

    }

    public void addHandler(RestorationHandler handler) {
        if(handler!=null) {
            restorationHandlers.add(handler);
            EventManager.dispatch(new RegistrationEvent(handler, this, true));
        }
    }
View Full Code Here

Examples of org.flexdock.perspective.event.RegistrationEvent

    public boolean removeHandler(RestorationHandler handler) {
        boolean ret = false;
        if(handler!=null) {
            ret = restorationHandlers.remove(handler);
            if(ret)
                EventManager.dispatch(new RegistrationEvent(handler, this, false));
        }
        return ret;
    }
View Full Code Here

Examples of org.flexdock.perspective.event.RegistrationEvent

            // create and add dockingstateinfo here
            info = new DockingState(dockableId);
            dockingInfo.put(dockableId, info);
        }

        EventManager.dispatch(new RegistrationEvent(info, this, true));
    }
View Full Code Here

Examples of org.flexdock.perspective.event.RegistrationEvent

        synchronized(dockingInfo) {
            info = (DockingState)dockingInfo.remove(dockableId);
        }
        // dispatch event notification if we actually removed something
        if(info!=null)
            EventManager.dispatch(new RegistrationEvent(info, this, false));
        return info;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.