public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
private void setState(State state) { this.state = state; state.addContext(this); }
public static AbstractRequestContext requestContext(AutoBean<?> bean) { State state = bean.<AbstractRequestContext.State> getTag(REQUEST_CONTEXT_STATE); return state == null ? null : state.getCanonicalContext(); }
protected AbstractRequestContext(AbstractRequestFactory factory, Dialect dialect) { setState(new State(factory, dialect.create(this), this)); }
protected AbstractRequestContext(AbstractRequestFactory factory, Dialect dialect) { setState(new State(factory, dialect.create(this), this)); }
public static AbstractRequestContext requestContext(AutoBean<?> bean) { State state = bean.<AbstractRequestContext.State> getTag(REQUEST_CONTEXT_STATE); return state == null ? null : state.getCanonicalContext(); }
private void setState(State state) { this.state = state; state.addContext(this); }
public static AbstractRequestContext requestContext(AutoBean<?> bean) { State state = bean.<AbstractRequestContext.State> getTag(REQUEST_CONTEXT_STATE); return state == null ? null : state.getCanonicalContext(); }
private void setState(State state) { this.state = state; state.addContext(this); }
protected AbstractRequestContext(AbstractRequestFactory factory, Dialect dialect) { setState(new State(factory, dialect.create(this), this)); }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
protected AbstractRequestContext(AbstractRequestFactory factory, Dialect dialect) { setState(new State(factory, dialect.create(this), this)); }
private void setState(State state) { this.state = state; state.addContext(this); }
public static AbstractRequestContext requestContext(AutoBean<?> bean) { State state = bean.<AbstractRequestContext.State> getTag(REQUEST_CONTEXT_STATE); return state == null ? null : state.getCanonicalContext(); }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }