Package org.rioproject.event

Examples of org.rioproject.event.EventDescriptor


            if(eventConsumer!=null)
                eventConsumer.terminate();
        }

        EventDescriptor getEventDescriptor(Entry[] attributes, EventDescriptor toMatch) {
            EventDescriptor matchedDescriptor = null;
            for(Entry entry : attributes) {
                if(entry instanceof EventDescriptor) {
                    if(((EventDescriptor)entry).matches(toMatch)) {
                        matchedDescriptor = (EventDescriptor)entry;
                        break;
View Full Code Here


     * Helper method to return the EventDescriptor for this event
     *
     * @return The EventDescriptor for this event
     */
    public static EventDescriptor getEventDescriptor(){
        return(new EventDescriptor(ProvisionMonitorEvent.class, ID));
    }
View Full Code Here

    public Throwable getThrowable() {
        return (exception);
    }

    public static EventDescriptor getEventDescriptor() {
        return new EventDescriptor(ProvisionFailureEvent.class, ID);
    }
View Full Code Here

            } else {
                loader = new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());
            }
            for (String className : classNames) {
                Class<?> cl = loader.loadClass(className);
                eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
            }
        } else {
            for (String className : classNames) {
                Class<?> cl = Thread.currentThread().getContextClassLoader().loadClass(className);
                eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
            }
        }
        return eventDescriptors;
    }
View Full Code Here

     * Helper method to return the EventDescriptor for this event
     *
     * @return The EventDescriptor for this event
     */
    public static EventDescriptor getEventDescriptor() {
        return (new EventDescriptor(HelloEvent.class, ID));
    }
View Full Code Here

TOP

Related Classes of org.rioproject.event.EventDescriptor

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.