/**
* Injection behavior that performs dependency injection after
- * serialization/deserialisation of the object.
+ * serialization/deserialisation of the object.
*
* @author Erik Brakkee
- *
+ *
*/
public class InjectionBehavior extends AbstractBehavior {
+ private static final long serialVersionUID = 7363393083209418693L;
private transient boolean injectionUptodate;
-
+
/**
* Constructs the behavior.
*/
- public InjectionBehavior() {
- injectionUptodate = true;
+ public InjectionBehavior() {
+ injectionUptodate = true;
}
-
+
@Override
public void beforeRender(Component aComponent) {
- if (!injectionUptodate) {
+ if (!injectionUptodate) {
InjectorBuilder.getInjector().inject(aComponent);
- injectionUptodate = true;
+ injectionUptodate = true;
}
}
}