コード例 #1
0
 @Override
 protected <T> T createToInstance(Object from, Class<T> toClass)
     throws InstantiationException, IllegalAccessException, SecurityException,
         NoSuchMethodException {
   // figure out the pre-enhanced class
   Class<T> actualClass = UnEnhancer.getActualClass(from);
   Class<T> targetClass = chooseClass(actualClass, toClass);
   return newInstanceAsPrivileged(targetClass);
 }
コード例 #2
0
 @Override
 protected <T> T replicate(T from) {
   return super.replicate(UnEnhancer.unenhanceObject(from));
 }
コード例 #3
0
 @Override
 public <V, T> T replicateBean(V from, Class<T> toClass) {
   return super.replicateBean(UnEnhancer.unenhanceObject(from), toClass, from);
 }