Author: julien_viet
Date: 2010-01-16 08:19:15 -0500 (Sat, 16 Jan 2010)
New Revision: 1333
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/TypeConverter.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedField.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedType.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/CreateException.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/ObjectFactory.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/DefaultTypeConverter.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/factory/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/factory/DefaultObjectFactory.java
Removed:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/annotations/
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/factory/
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/SerializationContext.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/model/TypeDomain.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/serial/ObjectReader.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/A.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/B.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C1.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C2.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/D.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E1.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E2.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/F.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/G.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A1.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A2.java
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/B.java
Log:
- make an API package to scope what should be used by clients
- introduce notion of type converter
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/SerializationContext.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/SerializationContext.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/SerializationContext.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,8 +19,8 @@
package org.exoplatform.webui.application.replication;
-import org.exoplatform.webui.application.replication.factory.DefaultObjectFactory;
-import org.exoplatform.webui.application.replication.factory.ObjectFactory;
+import
org.exoplatform.webui.application.replication.impl.api.factory.DefaultObjectFactory;
+import org.exoplatform.webui.application.replication.api.factory.ObjectFactory;
import org.exoplatform.webui.application.replication.model.TypeDomain;
import org.exoplatform.webui.application.replication.serial.ObjectReader;
import org.exoplatform.webui.application.replication.serial.ObjectWriter;
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/TypeConverter.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/TypeConverter.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/TypeConverter.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.api;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+public abstract class TypeConverter<I, O>
+{
+
+ public abstract O write(I input) throws Exception;
+
+ public abstract I read(O output) throws Exception;
+
+}
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedField.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedField.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedField.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.api.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Annotates a field
+ *
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+(a)Target(ElementType.FIELD)
+(a)Retention(RetentionPolicy.RUNTIME)
+public @interface ReplicatedField {
+}
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedType.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedType.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/annotations/ReplicatedType.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.api.annotations;
+
+import org.exoplatform.webui.application.replication.api.TypeConverter;
+import org.exoplatform.webui.application.replication.impl.api.DefaultTypeConverter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Annotates a field
+ *
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+(a)Target(ElementType.TYPE)
+(a)Retention(RetentionPolicy.RUNTIME)
+public @interface ReplicatedType {
+
+ Class<? extends TypeConverter<?, ?>> convertedBy() default
DefaultTypeConverter.class;
+
+}
\ No newline at end of file
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/CreateException.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/CreateException.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/CreateException.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.api.factory;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+public class CreateException extends Exception
+{
+ public CreateException()
+ {
+ }
+
+ public CreateException(String message)
+ {
+ super(message);
+ }
+
+ public CreateException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public CreateException(Throwable cause)
+ {
+ super(cause);
+ }
+}
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/ObjectFactory.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/ObjectFactory.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/api/factory/ObjectFactory.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.api.factory;
+
+import org.exoplatform.webui.application.replication.model.FieldModel;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ * @param <B> the base object type
+ */
+public abstract class ObjectFactory<B>
+{
+
+ /**
+ * Instantiate an object based on the provided class.
+ *
+ * @param type the type
+ * @param state the state
+ * @param <S> the sub type of the base type
+ * @return the S instance
+ * @throws CreateException anything wrong that could happen during instance creation
+ */
+ public abstract <S extends B> S create(Class<S> type,
Map<FieldModel<? super S, ?>, ?> state) throws CreateException;
+
+}
Added:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/DefaultTypeConverter.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/DefaultTypeConverter.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/DefaultTypeConverter.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.impl.api;
+
+import org.exoplatform.webui.application.replication.api.TypeConverter;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+public class DefaultTypeConverter extends TypeConverter<Object, Object>
+{
+ @Override
+ public Object write(Object input) throws Exception
+ {
+ return input;
+ }
+
+ @Override
+ public Object read(Object output) throws Exception
+ {
+ return output;
+ }
+}
Copied:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/factory/DefaultObjectFactory.java
(from rev 1332,
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/factory/DefaultObjectFactory.java)
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/factory/DefaultObjectFactory.java
(rev 0)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/impl/api/factory/DefaultObjectFactory.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.application.replication.impl.api.factory;
+
+import org.exoplatform.webui.application.replication.api.factory.CreateException;
+import org.exoplatform.webui.application.replication.api.factory.ObjectFactory;
+import org.exoplatform.webui.application.replication.model.FieldModel;
+
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
+ * @version $Revision$
+ */
+public final class DefaultObjectFactory extends ObjectFactory<Object>
+{
+ @Override
+ public <S> S create(Class<S> type, Map<FieldModel<? super S, ?>,
?> state) throws CreateException
+ {
+ try
+ {
+ S instance = type.newInstance();
+
+ //
+ for (Map.Entry<FieldModel<? super S, ?>, ?> entry :
state.entrySet())
+ {
+ FieldModel<?, ?> fieldModel = entry.getKey();
+ Object value = entry.getValue();
+ fieldModel.castAndSet(instance, value);
+ }
+
+ //
+ return instance;
+ }
+ catch (Exception e)
+ {
+ throw new CreateException(e);
+ }
+ }
+}
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/model/TypeDomain.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/model/TypeDomain.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/model/TypeDomain.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.application.replication.model;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/serial/ObjectReader.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/serial/ObjectReader.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/application/replication/serial/ObjectReader.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -20,7 +20,7 @@
package org.exoplatform.webui.application.replication.serial;
import org.exoplatform.webui.application.replication.SerializationContext;
-import org.exoplatform.webui.application.replication.factory.ObjectFactory;
+import org.exoplatform.webui.application.replication.api.factory.ObjectFactory;
import org.exoplatform.webui.application.replication.model.ReplicatableTypeModel;
import org.exoplatform.webui.application.replication.model.FieldModel;
import org.exoplatform.webui.application.replication.model.TypeModel;
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/A.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/A.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/A.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/B.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/B.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/B.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C1.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C1.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C1.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C2.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C2.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/C2.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/D.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/D.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/D.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E1.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E1.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E1.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E2.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E2.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/E2.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/F.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/F.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/F.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
import java.util.ArrayList;
import java.util.List;
Modified: portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/G.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/G.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/G.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified:
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A1.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A1.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A1.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,8 +19,8 @@
package org.exoplatform.webui.replication.factory;
-import org.exoplatform.webui.application.replication.factory.ObjectFactory;
-import org.exoplatform.webui.application.replication.factory.CreateException;
+import org.exoplatform.webui.application.replication.api.factory.ObjectFactory;
+import org.exoplatform.webui.application.replication.api.factory.CreateException;
import org.exoplatform.webui.application.replication.model.FieldModel;
import java.util.Map;
Modified:
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A2.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A2.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/A2.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication.factory;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
Modified:
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/B.java
===================================================================
---
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/B.java 2010-01-16
12:38:39 UTC (rev 1332)
+++
portal/trunk/webui/core/src/test/java/org/exoplatform/webui/replication/factory/B.java 2010-01-16
13:19:15 UTC (rev 1333)
@@ -19,7 +19,7 @@
package org.exoplatform.webui.replication.factory;
-import org.exoplatform.webui.application.replication.annotations.ReplicatedType;
+import org.exoplatform.webui.application.replication.api.annotations.ReplicatedType;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>