public final void setBindingSite(BindingSite bs) { if (bs instanceof PluginBindingSite) { bindingSite = (PluginBindingSite) bs; } else { throw new RuntimeException("Tried to load "+this+" into "+bs); }
public final void setBindingSite(final BindingSite bs) { this.bindingSite = new PluginBindingSite() { public MessageAddress getAgentIdentifier() { return PluginAdapter.this.getAgentIdentifier(); } public ConfigFinder getConfigFinder() { return PluginAdapter.this.getConfigFinder(); } public ServiceBroker getServiceBroker() { return bs.getServiceBroker(); } public void requestStop() { bs.requestStop(); } };
  public final void setBindingSite(BindingSite bs) {    if (bs instanceof PluginBindingSite) {      bindingSite = (PluginBindingSite) bs;    } else {      throw new RuntimeException("Tried to load "+this+" into "+bs);    }  }