Package org.wso2.carbon.utils.multitenancy

Examples of org.wso2.carbon.utils.multitenancy.CarbonContextHolder.unloadTenant()


            CarbonContextHolder currentCarbonContextHolder =
                    CarbonContextHolder.getCurrentCarbonContextHolder();
            try {
                currentCarbonContextHolder.startTenantFlow();
                currentCarbonContextHolder.setTenantId(MultitenantConstants.SUPER_TENANT_ID);
                currentCarbonContextHolder.unloadTenant();
            } finally {
                currentCarbonContextHolder.endTenantFlow();
            }

            // ACL keys its loggers off of the ContextClassLoader which prevents GC without calling release.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.