01: package org.vraptor.plugin;
02:
03: import org.vraptor.component.ComponentType;
04: import org.vraptor.component.LogicNotFoundException;
05:
06: /**
07: * A component wrapper. Classes which implement this interfaces decide wheter
08: * components should be wrapped or not.
09: *
10: * @author Guilherme Silveira
11: * @since 2.4
12: */
13: public interface ComponentWrapper {
14:
15: boolean needsToWrap(ComponentType component)
16: throws LogicNotFoundException;
17:
18: ComponentType wrap(ComponentType component);
19:
20: }
|