/** * @return a set of interfaces supported by proxied object. */ private Set<Class<?>> getInterfacesSet() { final Set<Class<?>> set = new HashSet<Class<?>>(); if (genericType.isInterface()) { set.add(genericType); } final Class<?>[] classes = objectFactory.getObjectClass().getInterfaces(); for (final Class<?> clazz : classes) { set.add(clazz); } LOG.debug("interfaces set: {}", set); return set; } }
/** * @return a set of interfaces supported by proxied object. */ private Set<Class<?>> getInterfacesSet() { final Set<Class<?>> set = new HashSet<Class<?>>(); if (genericType.isInterface()) { set.add(genericType); } final Class<?>[] classes = objectFactory.getObjectClass().getInterfaces(); for (final Class<?> clazz : classes) { set.add(clazz); } LOG.debug("interfaces set: {}", set); return set; } }
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { try { return method.invoke(objectFactory.create(), args); } catch (final InvocationTargetException ex) { // Preserve original exception throw ex.getCause(); } } };
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { try { return method.invoke(objectFactory.create(), args); } catch (final InvocationTargetException ex) { // Preserve original exception throw ex.getCause(); } } };