Author: julien(a)jboss.com
Date: 2008-07-06 16:55:31 -0400 (Sun, 06 Jul 2008)
New Revision: 11308
Modified:
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/CreateDiffPhase.java
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/ObjectDiff.java
Log:
symetric SingeLoad/RecursiveLoad
Modified:
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/CreateDiffPhase.java
===================================================================
---
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/CreateDiffPhase.java 2008-07-06
20:37:56 UTC (rev 11307)
+++
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/CreateDiffPhase.java 2008-07-06
20:55:31 UTC (rev 11308)
@@ -253,7 +253,7 @@
}
else
{
- return ObjectDiff.createLoad(object);
+ return ObjectDiff.createSingleLoad(object);
}
}
}
Modified:
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/ObjectDiff.java
===================================================================
---
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/ObjectDiff.java 2008-07-06
20:37:56 UTC (rev 11307)
+++
modules/presentation/trunk/presentation/src/main/java/org/jboss/portal/presentation/impl/model/ObjectDiff.java 2008-07-06
20:55:31 UTC (rev 11308)
@@ -46,9 +46,9 @@
return new RecursiveLoad(object, addedChildren);
}
- static ObjectDiff createLoad(UIObjectImpl object)
+ static ObjectDiff createSingleLoad(UIObjectImpl object)
{
- return new Load(object);
+ return new SingleLoad(object);
}
static ObjectDiff createSkip(UIObjectImpl object)
@@ -119,15 +119,22 @@
}
}
- public static class Load extends ObjectDiff
+ public abstract static class Load extends ObjectDiff
{
-
private Load(UIObjectImpl object)
{
super(object);
}
}
+ public static class SingleLoad extends Load
+ {
+ private SingleLoad(UIObjectImpl object)
+ {
+ super(object);
+ }
+ }
+
public static class RecursiveLoad extends Load
{
@@ -280,7 +287,7 @@
}
}
- public static class Update extends ObjectDiff
+ public abstract static class Update extends ObjectDiff
{
/** . */