public void inject(T instance) throws ObjectCreationException {
try {
method.invoke(instance, objectFactory.getInstance());
} catch (IllegalAccessException e) {
throw new ObjectCreationException("Method is not accessible [" + method + "]", e);
} catch (IllegalArgumentException e) {
throw new ObjectCreationException("Exception thrown by setter: " + method.getName(), e);
} catch (InvocationTargetException e) {
throw new ObjectCreationException("Exception thrown by setter: " + method.getName(), e);
}
}