Package org.apache.archiva.configuration

Examples of org.apache.archiva.configuration.FileLockConfiguration


    {
        ArchivaRuntimeConfiguration value = new ArchivaRuntimeConfiguration();

        CacheConfiguration urlFailureCacheConfiguration = readCacheConfiguration( prefix + "urlFailureCacheConfiguration.", registry );
        value.setUrlFailureCacheConfiguration( urlFailureCacheConfiguration );
        FileLockConfiguration fileLockConfiguration = readFileLockConfiguration( prefix + "fileLockConfiguration.", registry );
        value.setFileLockConfiguration( fileLockConfiguration );

        return value;
    }
View Full Code Here


        return value;
    }
   
    private FileLockConfiguration readFileLockConfiguration( String prefix, Registry registry )
    {
        FileLockConfiguration value = new FileLockConfiguration();

        boolean skipLocking = registry.getBoolean( prefix + "skipLocking", value.isSkipLocking() );
        value.setSkipLocking( skipLocking );
    int lockingTimeout = registry.getInt( prefix + "lockingTimeout", value.getLockingTimeout() );
        value.setLockingTimeout( lockingTimeout );

        return value;
    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.configuration.FileLockConfiguration

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.