예제 #1
0
 private T newContextObject() {
   try {
     if (type.isInterface()) {
       return (T) Classes.newDynamicProxy(type);
     } else {
       return (T) type.newInstance();
     }
   } catch (Exception anExc) {
     throw new XmlReadingException(anExc);
   }
 }
예제 #2
0
 public ContextMutator(Class<?> aFor, Class<T> aWith, String aTagName) {
   method = Classes.getMutatorMethod(aFor, aWith.getSimpleName(), aTagName);
 }