@Override @SuppressWarnings("element-type-mismatch") public Object remove(Object key) { if (packet.supports(key)) { return packet.remove(key); } Object old = packet.invocationProperties.get(key); if (old != null) { if (packet.getHandlerScopePropertyNames(true).contains(key)) { throw new IllegalArgumentException("Cannot remove property in HANDLER scope"); } // Remove existing APPLICATION scoped property packet.invocationProperties.remove(key); return old; } // No existing property. return null; }
@Override @SuppressWarnings("element-type-mismatch") public Object remove(Object key) { if (packet.supports(key)) { return packet.remove(key); } Object old = packet.invocationProperties.get(key); if (old != null) { if (packet.getHandlerScopePropertyNames(true).contains(key)) { throw new IllegalArgumentException("Cannot remove property in HANDLER scope"); } // Remove existing APPLICATION scoped property packet.invocationProperties.remove(key); return old; } // No existing property. return null; }
@Override @SuppressWarnings("element-type-mismatch") public Object remove(Object key) { if (packet.supports(key)) { return packet.remove(key); } Object old = packet.invocationProperties.get(key); if (old != null) { if (packet.getHandlerScopePropertyNames(true).contains(key)) { throw new IllegalArgumentException("Cannot remove property in HANDLER scope"); } // Remove existing APPLICATION scoped property packet.invocationProperties.remove(key); return old; } // No existing property. return null; }