예제 #1
0
 private synchronized void doRemoveOutboundReference(Meem meem, Reference reference) {
   if (reference.getFacetIdentifier().equals("lifeCycleClient")) {
     removeLifeCycleReference(reference);
   } else if (meem != null) {
     meem.removeOutboundReference(reference);
   }
 }
예제 #2
0
  /**
   * @see
   *     org.openmaji.meem.Meem#removeOutboundReference(org.openmaji.meem.wedge.reference.Reference)
   */
  public void removeOutboundReference(Reference reference) {
    if (reference == null) {
      throw new IllegalArgumentException(
          "attempt to call removeOutboundReference with null reference.");
    }

    Client client = getClient();
    synchronized (client) {
      if (!client.isDone()) {
        if (reference.getFacetIdentifier().equals("lifeCycleClient")) {
          removeLifeCycleReference(reference);
        } else {
          queuedMeemProxy.removeOutboundReference(reference);
        }
        return;
      }
    }

    doRemoveOutboundReference(meem, reference);
  }