/** * Get a value from the stores. */ public Object getValue(Object key) { // find where it is Object rtn = getPayloadValue(key); if (rtn != null) return rtn; rtn = getAsIsValue(key); if (rtn != null) return rtn; rtn = getTransientValue(key); return rtn; }
public Object invokeHome(Invocation mi) throws Exception { String invokerBinding = (String)mi.getAsIsValue(InvocationKey.INVOKER_PROXY_BINDING); setProxyFactory(invokerBinding, mi); String oldInvokerBinding = ENCThreadLocalKey.getKey(); // Only override current ENC binding if we're not local // if ((!BeanMetaData.LOCAL_INVOKER_PROXY_BINDING.equals(invokerBinding)) || oldInvokerBinding == null) if (invokerBinding != null || oldInvokerBinding == null) { ENCThreadLocalKey.setKey(invokerBinding); } Interceptor next = getNext(); Object value = null; try { value = next.invokeHome(mi); } finally { ENCThreadLocalKey.setKey(oldInvokerBinding); // JBAS-4192 clear the container's thread local container.setProxyFactory(null); } return value; }
public Object invoke(Invocation mi) throws Exception { String invokerBinding = (String)mi.getAsIsValue(InvocationKey.INVOKER_PROXY_BINDING); setProxyFactory(invokerBinding, mi); String oldInvokerBinding = ENCThreadLocalKey.getKey(); // Only override current ENC binding if we're not local or there has not been a previous call // if ((!BeanMetaData.LOCAL_INVOKER_PROXY_BINDING.equals(invokerBinding)) || oldInvokerBinding == null) if (invokerBinding != null || oldInvokerBinding == null) { ENCThreadLocalKey.setKey(invokerBinding); } Interceptor next = getNext(); Object value = null; try { value = next.invoke(mi); } finally { ENCThreadLocalKey.setKey(oldInvokerBinding); // JBAS-4192 clear the container's thread local container.setProxyFactory(null); } return value; }