Package Framework

Examples of Framework.AppContextAwareResultWrapper


            logger.debug("No attributes attached to invocation");
        }
        Object result = invocation.invoke(targetObject);

        Map<String, Object> appContext = FrameworkUtils.getAppContextValues();
        return new CompressedResultWrapper(new AppContextAwareResultWrapper(result, appContext));
    }
View Full Code Here


        Object returnValue = super.invoke(invocation);
        if (returnValue instanceof CompressedResultWrapper) {
            returnValue = ((CompressedResultWrapper)returnValue).getResult();
        }
        if (returnValue instanceof AppContextAwareResultWrapper) {
            AppContextAwareResultWrapper resultWrapper = (AppContextAwareResultWrapper) returnValue;
            Map<String, Object> attributes = resultWrapper.getAppContext();
            if (attributes != null && attributes.size() > 0) {
                logger.debug("Populated app context from remote invocation ["
                        + attributes.size() + "]");
                FrameworkUtils.setAppContextValues(new Hashtable<String, Object>(attributes));
            }
View Full Code Here

        Object returnValue = super.invoke(pInvocation);
        if (returnValue != null && returnValue instanceof CompressedResultWrapper) {
            returnValue = ((CompressedResultWrapper)returnValue).getResult();
        }
        if (returnValue instanceof AppContextAwareResultWrapper) {
            AppContextAwareResultWrapper resultWrapper = (AppContextAwareResultWrapper) returnValue;
            Map<String, Object> attributes = resultWrapper.getAppContext();
            if (attributes != null && attributes.size() > 0) {
                logger.debug("Populated app context from remote invocation ["
                        + attributes.size() + "]");
                FrameworkUtils.setAppContextValues(new Hashtable<String, Object>(attributes));
            }
View Full Code Here

            logger.debug("No attributes attached to invocation");
        }
        Object result = invocation.invoke(targetObject);

        Map<String, Object> appContext = FrameworkUtils.getAppContextValues();
        return new CompressedResultWrapper(new AppContextAwareResultWrapper(result, appContext));
    }
View Full Code Here

        Object returnValue = super.invoke(invocation);
        if (returnValue instanceof CompressedResultWrapper) {
            returnValue = ((CompressedResultWrapper)returnValue).getResult();
        }
        if (returnValue instanceof AppContextAwareResultWrapper) {
            AppContextAwareResultWrapper resultWrapper = (AppContextAwareResultWrapper) returnValue;
            Map<String, Object> attributes = resultWrapper.getAppContext();
            if (attributes != null && attributes.size() > 0) {
                logger.debug("Populated app context from remote invocation ["
                        + attributes.size() + "]");
                FrameworkUtils.setAppContextValues(new Hashtable<String, Object>(attributes));
            }
View Full Code Here

        Object returnValue = super.invoke(pInvocation);
        if (returnValue != null && returnValue instanceof CompressedResultWrapper) {
            returnValue = ((CompressedResultWrapper)returnValue).getResult();
        }
        if (returnValue instanceof AppContextAwareResultWrapper) {
            AppContextAwareResultWrapper resultWrapper = (AppContextAwareResultWrapper) returnValue;
            Map<String, Object> attributes = resultWrapper.getAppContext();
            if (attributes != null && attributes.size() > 0) {
                logger.debug("Populated app context from remote invocation ["
                        + attributes.size() + "]");
                FrameworkUtils.setAppContextValues(new Hashtable<String, Object>(attributes));
            }
View Full Code Here

TOP

Related Classes of Framework.AppContextAwareResultWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.