@Test public void bindAfterContextualization() { assertThat( new PassivateCapabilityDuringUpdateCondition(eventManager).setContext(reference.context()).bind(), notNullValue() ); }
@Override public PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context) { checkState(!isActive(), "Cannot contextualize when already bounded"); checkState(id == null, "Already contextualized with id '" + id + "'"); id = context.id(); return this; }
PassivateCapabilityDuringUpdateCondition extends ConditionSupport implements CapabilityContextAware { @Override public PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context) { checkState(!isActive(), "Cannot contextualize when already bounded"); checkState(id == null, "Already contextualized with id '" + id + "'"); id = context.id(); return this; } }
PassivateCapabilityDuringUpdateCondition extends ConditionSupport implements CapabilityContextAware { @Override public PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context) { checkState(!isActive(), "Cannot contextualize when already bounded"); checkState(id == null, "Already contextualized with id '" + id + "'"); id = context.id(); return this; } PassivateCapabilityDuringUpdateCondition(final EventManager eventManager,
                                                  final String... propertyNames); }
PassivateCapabilityDuringUpdateCondition extends ConditionSupport implements CapabilityContextAware { @Override public PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context) { checkState(!isActive(), "Cannot contextualize when already bounded"); checkState(id == null, "Already contextualized with id '" + id + "'"); id = context.id(); return this; } PassivateCapabilityDuringUpdateCondition(final EventManager eventManager,
                                                  final String... propertyNames); @Override PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context); @Override void doRelease(); @AllowConcurrentEvents @Subscribe void handle(final CapabilityEvent.BeforeUpdate event); @AllowConcurrentEvents @Subscribe void handle(final CapabilityEvent.AfterUpdate event); @Override String toString(); @Override String explainSatisfied(); @Override String explainUnsatisfied(); }
PassivateCapabilityDuringUpdateCondition extends ConditionSupport implements CapabilityContextAware { @Override public PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context) { checkState(!isActive(), "Cannot contextualize when already bounded"); checkState(id == null, "Already contextualized with id '" + id + "'"); id = context.id(); return this; } PassivateCapabilityDuringUpdateCondition(final EventManager eventManager,
                                                  final String... propertyNames); @Override PassivateCapabilityDuringUpdateCondition setContext(final CapabilityContext context); @Override void doRelease(); @AllowConcurrentEvents @Subscribe void handle(final CapabilityEvent.BeforeUpdate event); @AllowConcurrentEvents @Subscribe void handle(final CapabilityEvent.AfterUpdate event); @Override String toString(); @Override String explainSatisfied(); @Override String explainUnsatisfied();  }