Package org.geowebcache.locks

Examples of org.geowebcache.locks.MemoryLockProvider


     * @param lockProviderName
     */
    private void updateLockProvider(String lockProviderName) {
        LockProvider delegate = null;
        if(lockProviderName == null) {
            delegate = new MemoryLockProvider();
        } else {
            Object provider = GeoWebCacheExtensions.bean(lockProviderName);
            if(provider == null) {
                throw new RuntimeException("Could not find lock provider " + lockProvider
                        + " in the spring application context");
View Full Code Here


    @Before
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void setUp() throws Exception {
        mockGWC = mock(GWC.class);
        MemoryLockProvider lockProvider = new MemoryLockProvider();
        when(mockGWC.getLockProvider()).thenReturn(lockProvider);
        GWC.set(mockGWC);

        final String layerInfoId = "mock-layer-info";
View Full Code Here

     * @return
     */
    public LockProvider getLockProvider() {
        if(lockProviderInstance == null) {
            if(lockProvider == null) {
                lockProviderInstance = new MemoryLockProvider();
            } else {
                Object provider = GeoWebCacheExtensions.bean(lockProvider);
                if(provider == null) {
                    throw new RuntimeException("Could not find lock provider " + lockProvider
                            + " in the spring application context");
View Full Code Here

TOP

Related Classes of org.geowebcache.locks.MemoryLockProvider

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.