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;
/**
* 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.
* 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.
*
*
* @param <T> Type of the field.
*/
-class FieldAccessor<T> implements Accessor<T> {
+public class FieldAccessor<T> implements Accessor<T> {
private Field field;
/**
* 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.
*
*
* @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;
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 {