01: package org.araneaframework.http.filter;
02:
03: import org.araneaframework.Component;
04: import org.araneaframework.core.BroadcastMessage;
05: import org.araneaframework.framework.core.RenderStateAware;
06:
07: /**
08: * @author Taimo Peelo (taimo@araneaframework.org)
09: *
10: * @since 1.1
11: */
12: public class NotRenderedMessage extends BroadcastMessage {
13: public static final NotRenderedMessage INSTANCE = new NotRenderedMessage();
14:
15: protected void execute(Component component) throws Exception {
16: if (component instanceof RenderStateAware) {
17: ((RenderStateAware) component)._setRendered(false);
18: }
19: }
20: }
|