Examples of addListener()


Examples of org.apache.catalina.deploy.jsp.TagLibraryInfo.addListener()

         // Listener
         if (tldMetaData.getListeners() != null)
         {
            for (ListenerMetaData listener : tldMetaData.getListeners())
            {
               tagLibraryInfo.addListener(listener.getListenerClass());
            }
         }
         // Validator
         if (tldMetaData.getValidator() != null)
         {
View Full Code Here

Examples of org.apache.cayenne.event.EventManager.addListener()

                    while (it.hasNext()) {
                        DbRelationship relationship = (DbRelationship) it.next();

                        // listen for changes
                        eventLoop.addListener(
                                this,
                                "dbRelationshipDidChange",
                                RelationshipEvent.class,
                                DbRelationship.PROPERTY_DID_CHANGE,
                                relationship);
View Full Code Here

Examples of org.apache.cayenne.reflect.LifecycleCallbackRegistry.addListener()

                            .getCallbackMap()
                            .getCallbacks();
                    for (CallbackDescriptor callback : callbacks) {

                        for (String method : callback.getCallbackMethods()) {
                            callbackRegistry.addListener(
                                    callback.getCallbackType(),
                                    entityClass,
                                    listenerInstance,
                                    method);
                        }
View Full Code Here

Examples of org.apache.cocoon.bean.CocoonBean.addListener()

public class AntDelegate {

    public static int process(Document xconf, String uriGroup) throws Exception {
        CocoonBean cocoon = new CocoonBean();
        OutputStreamListener listener = new OutputStreamListener(System.out);
        cocoon.addListener(listener);
        BeanConfigurator.configure(xconf, cocoon, "", uriGroup, listener);

        System.out.println(CocoonBean.getProlog());

        if (cocoon.getTargetCount() ==0 && cocoon.isPrecompileOnly()) {
View Full Code Here

Examples of org.apache.commons.io.monitor.FileAlterationObserver.addListener()

  FileTopologyProvider( FileAlterationMonitor monitor, File directory ) {
    this.directory = directory;
    this.monitor = monitor;

    FileAlterationObserver observer = new FileAlterationObserver( this.directory, this );
    observer.addListener( this );
    monitor.addObserver( observer );

    this.listeners = new HashSet<TopologyListener>();
    this.topologies = new HashMap<File,Topology>(); //loadTopologies( this.directory );
  }
View Full Code Here

Examples of org.apache.commons.jci.monitor.FilesystemAlterationMonitor.addListener()

    ReloadingListener listener = new ReloadingListener();

    listener.addReloadNotificationListener(classLoader);

    FilesystemAlterationMonitor fam = new FilesystemAlterationMonitor();
    fam.addListener(directory, listener);
    fam.start();
    } else {
      loader = ReloadingTransformer.class.getClassLoader();
    }
  }
View Full Code Here

Examples of org.apache.commons.jci.monitor.FilesystemAlterationObserver.addListener()

        newObservers.put(pRoot, observer);
        observers = Collections.unmodifiableMap(newObservers);
      }
    }
   
    observer.addListener(pListener);
  }
 
  public void removeListener(final FilesystemAlterationListener pListener) {
    synchronized (observersLock) {
      for (Iterator it = observers.values().iterator(); it.hasNext();) {
View Full Code Here

Examples of org.apache.commons.scxml.SCXMLExecutor.addListener()

            System.out.println(SCXMLSerializer.serialize(doc));
            SCXMLExecutor exec = new SCXMLExecutor(evaluator, null, trc);
            EventDispatcher ed = new SimpleScheduler(exec);
            exec.setEventdispatcher(ed);
            exec.setStateMachine(doc);
            exec.addListener(doc, trc);
            exec.registerInvokerClass("scxml", SimpleSCXMLInvoker.class);
            exec.setRootContext(rootCtx);
            exec.go();
            BufferedReader br = new BufferedReader(new
                InputStreamReader(System.in));
View Full Code Here

Examples of org.apache.commons.scxml.model.SCXML.addListener()

       
        SCXMLExecutor exec = null;
        try {
            exec = new SCXMLExecutor(evaluator, new SimpleDispatcher(),
                new SimpleErrorReporter());
            scxml.addListener(new SimpleSCXMLListener());
            exec.setSuperStep(true);
            exec.setStateMachine(scxml);
        } catch (ModelException me) {
          log.warn(me.getMessage(), me);
          return null;
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExecutor.addListener()

            System.out.println(SCXMLWriter.write(doc));
            SCXMLExecutor exec = new SCXMLExecutor(evaluator, null, trc);
            EventDispatcher ed = new SimpleScheduler(exec);
            exec.setEventdispatcher(ed);
            exec.setStateMachine(doc);
            exec.addListener(doc, trc);
            exec.registerInvokerClass("scxml", SimpleSCXMLInvoker.class);
            exec.setRootContext(rootCtx);
            exec.go();
            BufferedReader br = new BufferedReader(new
                InputStreamReader(System.in));
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.