(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 21 Jul 2010 10:45:58 +0000 (10:45 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 21 Jul 2010 10:45:58 +0000 (10:45 +0000)
support/general/src/main/java/org/wamblee/persistence/PersistentFactory.java
support/general/src/main/java/org/wamblee/reflection/Accessor.java [moved from support/general/src/main/java/org/wamblee/persistence/Accessor.java with 96% similarity]
support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java [moved from support/general/src/main/java/org/wamblee/persistence/FieldAccessor.java with 94% similarity]
support/general/src/main/java/org/wamblee/reflection/PropertyAccessor.java [moved from support/general/src/main/java/org/wamblee/persistence/PropertyAccessor.java with 95% similarity]
support/general/src/test/java/org/wamblee/persistence/PersistentFactoryTest.java

index bd1217e61cb7b2ae66dc2a7b0749228c26362da7..2f5bb7c20ee3486e69f4bc7fec5bde8311da7545 100644 (file)
@@ -26,6 +26,9 @@ import java.util.concurrent.ConcurrentHashMap;
 import javax.persistence.Id;
 import javax.persistence.Version;
 
+import org.wamblee.reflection.Accessor;
+import org.wamblee.reflection.FieldAccessor;
+import org.wamblee.reflection.PropertyAccessor;
 import org.wamblee.reflection.ReflectionUtils;
 
 /**
similarity index 96%
rename from support/general/src/main/java/org/wamblee/persistence/Accessor.java
rename to support/general/src/main/java/org/wamblee/reflection/Accessor.java
index 58b6cf7f0afab545798685f2f3916ab224b65fa4..5285e738e79c4f663be161357e3fa4d82ba220f6 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.wamblee.persistence;
+package org.wamblee.reflection;
 
 /**
  * Abstraction for accessing fields or properties of an object. 
similarity index 94%
rename from support/general/src/main/java/org/wamblee/persistence/FieldAccessor.java
rename to support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java
index e2de4eec4cb8329fd62a59d96f77fea7d94c58b6..99f418842af10c6b8a8a948c20e4fa602af721f9 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.wamblee.persistence;
+package org.wamblee.reflection;
 
 import java.lang.reflect.Field;
 
+
 /**
  * Utility for interfacing to a field of an object. 
  * 
@@ -24,7 +25,7 @@ import java.lang.reflect.Field;
  *
  * @param <T> Type of the field. 
  */
-class FieldAccessor<T> implements Accessor<T> {
+public class FieldAccessor<T> implements Accessor<T> {
     private Field field;
 
     /**
similarity index 95%
rename from support/general/src/main/java/org/wamblee/persistence/PropertyAccessor.java
rename to support/general/src/main/java/org/wamblee/reflection/PropertyAccessor.java
index baf539b0367308868e6e24b772d434242c276d09..17794dc59fe64a61e41a6b2845bce7c72fc953dd 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.wamblee.persistence;
+package org.wamblee.reflection;
 
 import java.lang.reflect.Method;
 
+
 /**
  * Accessing a property of an object. 
  * 
@@ -24,7 +25,7 @@ import java.lang.reflect.Method;
  *
  * @param <T> Type of the property. 
  */
-class PropertyAccessor<T> implements Accessor<T> {
+public class PropertyAccessor<T> implements Accessor<T> {
     private Method getter;
     private Method setter;
 
index 82f0bebaccba6633af692508d831e2c3197dcc0e..b1a7d7191ee78254d3bdf38d9b81175372abf50a 100644 (file)
@@ -23,6 +23,9 @@ import javax.persistence.Version;
 import org.junit.Test;
 import org.wamblee.persistence.PersistentFactory.EntityAccessor;
 import org.wamblee.persistence.PersistentFactory.EntityObjectAccessor;
+import org.wamblee.reflection.Accessor;
+import org.wamblee.reflection.FieldAccessor;
+import org.wamblee.reflection.PropertyAccessor;
 
 public class PersistentFactoryTest {