public Object target() {
return proxiedInstance;
}
protected void processReady(AtmosphereResource r) {
final DeliverTo deliverTo;
final Ready ready = onReadyMethod.getAnnotation(Ready.class);
// Keep backward compatibility
if (ready.value() != Ready.DELIVER_TO.RESOURCE) {
if (IAE == null) {
IAE = new IllegalArgumentException();
}
logger.warn("Since 2.2, delivery strategy must be specified with @DeliverTo, not with a value in the @Ready annotation.", IAE);
deliverTo = new DeliverTo() {
@Override
public DELIVER_TO value() {
switch (ready.value()) {
case ALL: