コード例 #1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * com.indyforge.foxnet.rmi.pattern.change.ChangeableQueue#applyChangeLater
   * (com.indyforge.foxnet.rmi.pattern.change.Change, java.util.Collection)
   */
  @Override
  public void applyChangeLater(Change<T> change, Collection<Invocation> invocations) {

    // Lookup invoker
    Invoker invoker = Invoker.of(peer);

    if (invoker != null) {
      // Generate an invocation
      Invocation invocation = invoker.invoke("applyChange", change);

      // Add... ?
      if (invocations != null) {
        invocations.add(invocation);
      }
    } else {
      // Apply directly!
      peer.applyChange(change);
    }
  }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.indyforge.foxnet.rmi.pattern.change.Changeable#applyChange(com.indyforge
  * .foxnet.rmi.pattern.change.Change)
  */
 @Override
 public void applyChange(Change<T> change) {
   peer.applyChange(change);
 }