/** * Pushes a new context on the stack. */ protected void newContext() { getContexts().addFirst(new HashMap<String, Object>()); }
/** * Removes the last context from the stack. * * @return the content just removed */ protected Map<String, Object> popContext() { if (!getProxyBuilder().getContexts().isEmpty()) { return getProxyBuilder().getContexts().removeFirst(); } return null; }
/** * Clears the context stack. */ protected void reset() { getProxyBuilder().getContexts().clear(); }
if (getProxyBuilder().getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) {
if (getProxyBuilder().getContexts().isEmpty()) {
public Object invokeMethod(String methodName, Object args) { Object name = getProxyBuilder().getName(methodName); Object result; Object previousContext = getProxyBuilder().getContext(); try { result = getProxyBuilder().doInvokeMethod(methodName, name, args); } catch (RuntimeException e) { // remove contexts created after we started if (getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) { getProxyBuilder().popContext(); context = getProxyBuilder().getContext(); } } throw e; } return result; }
/** * Pushes a new context on the stack. */ protected void newContext() { getContexts().addFirst(new HashMap<String, Object>()); }
/** * Pushes a new context on the stack. */ protected void newContext() { getContexts().addFirst(new HashMap<String, Object>()); }
/** * Pushes a new context on the stack. */ protected void newContext() { getContexts().addFirst(new HashMap<String, Object>()); }
/** * Clears the context stack. */ protected void reset() { getProxyBuilder().getContexts().clear(); }
/** * Clears the context stack. */ protected void reset() { getProxyBuilder().getContexts().clear(); }
/** * Removes the last context from the stack. * * @return the contet just removed */ protected Map<String, Object> popContext() { if (!getProxyBuilder().getContexts().isEmpty()) { return getProxyBuilder().getContexts().removeFirst(); } return null; }
/** * Removes the last context from the stack. * * @return the contet just removed */ protected Map<String, Object> popContext() { if (!getProxyBuilder().getContexts().isEmpty()) { return getProxyBuilder().getContexts().removeFirst(); } return null; }
/** * Removes the last context from the stack. * * @return the contet just removed */ protected Map<String, Object> popContext() { if (!getProxyBuilder().getContexts().isEmpty()) { return getProxyBuilder().getContexts().removeFirst(); } return null; }
/** * Clears the context stack. */ protected void reset() { getProxyBuilder().getContexts().clear(); }
if (getProxyBuilder().getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) {
if (getProxyBuilder().getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) {
public Object invokeMethod(String methodName, Object args) { Object name = getProxyBuilder().getName(methodName); Object result; Object previousContext = getProxyBuilder().getContext(); try { result = getProxyBuilder().doInvokeMethod(methodName, name, args); } catch (RuntimeException e) { // remove contexts created after we started if (getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) { getProxyBuilder().popContext(); context = getProxyBuilder().getContext(); } } throw e; } return result; }
public Object invokeMethod(String methodName, Object args) { Object name = getProxyBuilder().getName(methodName); Object result; Object previousContext = getProxyBuilder().getContext(); try { result = getProxyBuilder().doInvokeMethod(methodName, name, args); } catch (RuntimeException e) { // remove contexts created after we started if (getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) { getProxyBuilder().popContext(); context = getProxyBuilder().getContext(); } } throw e; } return result; }
public Object invokeMethod(String methodName, Object args) { Object name = getProxyBuilder().getName(methodName); Object result; Object previousContext = getProxyBuilder().getContext(); try { result = getProxyBuilder().doInvokeMethod(methodName, name, args); } catch (RuntimeException e) { // remove contexts created after we started if (getContexts().contains(previousContext)) { Map<String, Object> context = getProxyBuilder().getContext(); while (context != null && context != previousContext) { getProxyBuilder().popContext(); context = getProxyBuilder().getContext(); } } throw e; } return result; }