/** * Ensures that any method arguments are retained in the context's sphere of influence. */ private void retainArg(Object arg) { if (arg instanceof Iterable<?>) { for (Object o : (Iterable<?>) arg) { retainArg(o); } } else if (arg instanceof BaseProxy) { // Calling edit will validate and set up the tracking we need edit((BaseProxy) arg); } }
/** * Ensures that any method arguments are retained in the context's sphere of influence. */ private void retainArg(Object arg) { if (arg instanceof Iterable<?>) { for (Object o : (Iterable<?>) arg) { retainArg(o); } } else if (arg instanceof BaseProxy) { // Calling edit will validate and set up the tracking we need edit((BaseProxy) arg); } }
/** * Ensures that any method arguments are retained in the context's sphere of influence. */ private void retainArg(Object arg) { if (arg instanceof Iterable<?>) { for (Object o : (Iterable<?>) arg) { retainArg(o); } } else if (arg instanceof BaseProxy) { // Calling edit will validate and set up the tracking we need edit((BaseProxy) arg); } }
/** * Ensures that any method arguments are retained in the context's sphere of influence. */ private void retainArg(Object arg) { if (arg instanceof Iterable<?>) { for (Object o : (Iterable<?>) arg) { retainArg(o); } } else if (arg instanceof BaseProxy) { // Calling edit will validate and set up the tracking we need edit((BaseProxy) arg); } }