Examples of ListenerManager


Examples of org.gradle.listener.ListenerManager

        assertThat(registry, instanceOf(GradleInternalServiceRegistry.class));
    }

    @Test
    public void providesAListenerManager() {
        ListenerManager listenerManager = expectListenerManagerCreated();
        assertThat(factory.get(ListenerManager.class), sameInstance(listenerManager));
    }
View Full Code Here

Examples of org.gradle.listener.ListenerManager

        assertThat(factory.get(BuildConfigurer.class), instanceOf(DefaultBuildConfigurer.class));
        assertThat(factory.get(BuildConfigurer.class), sameInstance(factory.get(BuildConfigurer.class)));
    }

    private ListenerManager expectListenerManagerCreated() {
        final ListenerManager listenerManager = new DefaultListenerManager();
        context.checking(new Expectations(){{
            allowing(parent).get(ListenerManager.class);
            ListenerManager parent = context.mock(ListenerManager.class);
            will(returnValue(parent));
            one(parent).createChild();
            will(returnValue(listenerManager));
        }});
        return listenerManager;
View Full Code Here

Examples of org.masukomi.aspirin.core.listener.ListenerManager

   * Add mail delivery status listener.
   * @param listener AspirinListener object
   */
  public static void addListener(AspirinListener listener) {
    if( listenerManager == null )
      listenerManager = new ListenerManager();
    listenerManager.add(listener);
  }
View Full Code Here

Examples of org.quartz.ListenerManager

  /**
   * Register all specified listeners with the Scheduler.
   */
  protected void registerListeners() throws SchedulerException {
    ListenerManager listenerManager = getScheduler().getListenerManager();
    if (this.schedulerListeners != null) {
      for (SchedulerListener listener : this.schedulerListeners) {
        listenerManager.addSchedulerListener(listener);
      }
    }
    if (this.globalJobListeners != null) {
      for (JobListener listener : this.globalJobListeners) {
        listenerManager.addJobListener(listener);
      }
    }
    if (this.globalTriggerListeners != null) {
      for (TriggerListener listener : this.globalTriggerListeners) {
        listenerManager.addTriggerListener(listener);
      }
    }
  }
View Full Code Here

Examples of simtools.util.ListenerManager

   * @return a copy of the shape
   */
  protected AbstractShape cloneShape(){
    try{
      AbstractShape clone = (AbstractShape)super.clone();
      clone.listeners = new ListenerManager();
      return clone;
    }
    catch(CloneNotSupportedException cnse){
    }
    return null;
View Full Code Here

Examples of simtools.util.ListenerManager

   * @throws IOException if there is an I/O problem.
   * @throws ClassNotFoundException if there is a problem loading a class.
   */
  private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    listeners = new ListenerManager();
  }
View Full Code Here

Examples of simtools.util.ListenerManager

    out.defaultWriteObject();
  }

    private void readObject(java.io.ObjectInputStream in) throws java.lang.ClassNotFoundException, java.io.IOException {
      in.defaultReadObject();
      listeners = new ListenerManager();
      dirtyNodes = new ListenerManager();
    }
View Full Code Here

Examples of simtools.util.ListenerManager

        in.defaultReadObject();
        localRangeMaxPoint = new CurvePoint();
        localRangeMinPoint = new CurvePoint();
        currentPoint = new CurvePoint();

        listeners=new ListenerManager();
        xCache=new double[2*MAXSTEPS];
        yCache=new double[2*MAXSTEPS];
        ySourceCache=new double[2*MAXSTEPS];
        useCache=false;
        iteratorMinIndex=-1;
View Full Code Here

Examples of simtools.util.ListenerManager

     * @see java.lang.Object#clone()
     */
    public Object clone() throws CloneNotSupportedException {
        CurveShape cs = (CurveShape)super.clone();
        // object cloning this curve should re-register on cline
        cs.listeners = new ListenerManager();

        cs.localRangeMaxPoint = new CurvePoint();
        cs.localRangeMinPoint = new CurvePoint();
        cs.currentPoint = new CurvePoint();
        cs.referencePoint = null;
View Full Code Here

Examples of simtools.util.ListenerManager

        if (listeners!=null) notifyListenersForStructuralChange(node);
    }
          
    private void readObject(java.io.ObjectInputStream in) throws java.lang.ClassNotFoundException, java.io.IOException {
      in.defaultReadObject();
      listeners = new ListenerManager();
    }
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.