Package org.auraframework.service

Examples of org.auraframework.service.CachingService


    private CompileContext currentCC;

    private final MasterDefRegistryImpl original;

    private MasterDefRegistryImpl(RegistryTrie delegate, MasterDefRegistryImpl original) {
        CachingService acs = Aura.getCachingService();

        this.delegateRegistries = delegate;
        this.original = original;
        this.rLock = acs.getReadLock();
        this.wLock = acs.getWriteLock();
        this.existsCache = acs.getExistsCache();
        this.defsCache = acs.getDefsCache();
        this.depsCache = acs.getDepsCache();
        this.stringsCache = acs.getStringsCache();
        this.descriptorFilterCache = acs.getDescriptorFilterCache();
        this.accessCheckCache = acs.<String, String> getCacheBuilder()
                .setInitialSize(ACCESS_CHECK_CACHE_SIZE)
                .setMaximumSize(ACCESS_CHECK_CACHE_SIZE)
                .setRecordStats(true)
                .setSoftValues(true)
                .build();
View Full Code Here


        public LockTestInfo() {
            ServiceLoader sl = ServiceLocatorMocker.spyOnServiceLocator();
            this.rLock = Mockito.mock(Lock.class, "rLock");
            this.wLock = Mockito.mock(Lock.class, "wLock");
            CachingService acs = Mockito.spy(sl.get(CachingService.class));
            Mockito.stub(sl.get(CachingService.class)).toReturn(acs);
            Mockito.stub(acs.getReadLock()).toReturn(rLock);
            Mockito.stub(acs.getWriteLock()).toReturn(wLock);
            this.reg = new FakeRegistry(rLock, wLock);
            this.mdr = new MasterDefRegistryImpl(reg);
        }
View Full Code Here

TOP

Related Classes of org.auraframework.service.CachingService

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.