001package org.apache.archiva.admin.model.beans; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import javax.xml.bind.annotation.XmlRootElement; 023 024/** 025 * @author Olivier Lamy 026 * @since 1.4-M4 027 */ 028@XmlRootElement(name = "archivaRuntimeConfiguration") 029public class ArchivaRuntimeConfiguration 030{ 031 private CacheConfiguration urlFailureCacheConfiguration; 032 033 /** 034 * @since 2.0.0 035 */ 036 private FileLockConfiguration fileLockConfiguration; 037 038 public ArchivaRuntimeConfiguration() 039 { 040 // no op 041 } 042 043 public CacheConfiguration getUrlFailureCacheConfiguration() 044 { 045 return urlFailureCacheConfiguration; 046 } 047 048 public void setUrlFailureCacheConfiguration( CacheConfiguration urlFailureCacheConfiguration ) 049 { 050 this.urlFailureCacheConfiguration = urlFailureCacheConfiguration; 051 } 052 053 public FileLockConfiguration getFileLockConfiguration() 054 { 055 return fileLockConfiguration; 056 } 057 058 public void setFileLockConfiguration( FileLockConfiguration fileLockConfiguration ) 059 { 060 this.fileLockConfiguration = fileLockConfiguration; 061 } 062 063 @Override 064 public String toString() 065 { 066 final StringBuilder sb = new StringBuilder( "ArchivaRuntimeConfiguration{" ); 067 sb.append( "urlFailureCacheConfiguration=" ).append( urlFailureCacheConfiguration ); 068 sb.append( ", fileLockConfiguration=" ).append( fileLockConfiguration ); 069 sb.append( '}' ); 070 return sb.toString(); 071 } 072 073}