예제 #1
0
  public void updateDependency(DependencyAttribute dependencyAttribute) {
    Client client = getClient();
    synchronized (client) {
      if (!client.isDone()) {
        queuedMeemProxy.updateDependency(dependencyAttribute);
        return;
      }
    }

    doUpdateDependency(meem, dependencyAttribute);
  }
예제 #2
0
  public void addDependency(
      Facet facet, DependencyAttribute dependencyAttribute, LifeTime lifeTime) {
    Client client = getClient();
    synchronized (client) {
      if (!client.isDone()) {
        queuedMeemProxy.addDependency(facet, dependencyAttribute, lifeTime);
        return;
      }
    }

    doAddDependency(meem, facet, dependencyAttribute, lifeTime);
  }
예제 #3
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);
  }