001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.config.store;
014
015import java.lang.reflect.*;
016import java.util.*;
017
018import org.apache.juneau.*;
019import org.apache.juneau.http.*;
020import org.apache.juneau.reflect.*;
021import org.apache.juneau.svl.*;
022
023/**
024 * Base builder class for {@link ConfigStore} objects.
025 */
026public abstract class ConfigStoreBuilder extends ContextBuilder {
027
028   /**
029    * Constructor, default settings.
030    */
031   public ConfigStoreBuilder() {
032      super();
033   }
034
035   /**
036    * Constructor.
037    *
038    * @param ps The initial configuration settings for this builder.
039    */
040   public ConfigStoreBuilder(PropertyStore ps) {
041      super(ps);
042   }
043
044   @Override
045   public abstract ConfigStore build();
046
047   //-----------------------------------------------------------------------------------------------------------------
048   // Properties
049   //-----------------------------------------------------------------------------------------------------------------
050
051   // <FluentSetters>
052
053   @Override /* GENERATED - ContextBuilder */
054   public ConfigStoreBuilder add(Map<String,Object> properties) {
055      super.add(properties);
056      return this;
057   }
058
059   @Override /* GENERATED - ContextBuilder */
060   public ConfigStoreBuilder addTo(String name, Object value) {
061      super.addTo(name, value);
062      return this;
063   }
064
065   @Override /* GENERATED - ContextBuilder */
066   public ConfigStoreBuilder appendTo(String name, Object value) {
067      super.appendTo(name, value);
068      return this;
069   }
070
071   @Override /* GENERATED - ContextBuilder */
072   public ConfigStoreBuilder apply(PropertyStore copyFrom) {
073      super.apply(copyFrom);
074      return this;
075   }
076
077   @Override /* GENERATED - ContextBuilder */
078   public ConfigStoreBuilder applyAnnotations(java.lang.Class<?>...fromClasses) {
079      super.applyAnnotations(fromClasses);
080      return this;
081   }
082
083   @Override /* GENERATED - ContextBuilder */
084   public ConfigStoreBuilder applyAnnotations(Method...fromMethods) {
085      super.applyAnnotations(fromMethods);
086      return this;
087   }
088
089   @Override /* GENERATED - ContextBuilder */
090   public ConfigStoreBuilder applyAnnotations(AnnotationList al, VarResolverSession r) {
091      super.applyAnnotations(al, r);
092      return this;
093   }
094
095   @Override /* GENERATED - ContextBuilder */
096   public ConfigStoreBuilder debug() {
097      super.debug();
098      return this;
099   }
100
101   @Override /* GENERATED - ContextBuilder */
102   public ConfigStoreBuilder locale(Locale value) {
103      super.locale(value);
104      return this;
105   }
106
107   @Override /* GENERATED - ContextBuilder */
108   public ConfigStoreBuilder mediaType(MediaType value) {
109      super.mediaType(value);
110      return this;
111   }
112
113   @Override /* GENERATED - ContextBuilder */
114   public ConfigStoreBuilder prependTo(String name, Object value) {
115      super.prependTo(name, value);
116      return this;
117   }
118
119   @Override /* GENERATED - ContextBuilder */
120   public ConfigStoreBuilder putAllTo(String name, Object value) {
121      super.putAllTo(name, value);
122      return this;
123   }
124
125   @Override /* GENERATED - ContextBuilder */
126   public ConfigStoreBuilder putTo(String name, String key, Object value) {
127      super.putTo(name, key, value);
128      return this;
129   }
130
131   @Override /* GENERATED - ContextBuilder */
132   public ConfigStoreBuilder removeFrom(String name, Object value) {
133      super.removeFrom(name, value);
134      return this;
135   }
136
137   @Override /* GENERATED - ContextBuilder */
138   public ConfigStoreBuilder set(Map<String,Object> properties) {
139      super.set(properties);
140      return this;
141   }
142
143   @Override /* GENERATED - ContextBuilder */
144   public ConfigStoreBuilder set(String name, Object value) {
145      super.set(name, value);
146      return this;
147   }
148
149   @Override /* GENERATED - ContextBuilder */
150   public ConfigStoreBuilder timeZone(TimeZone value) {
151      super.timeZone(value);
152      return this;
153   }
154
155   // </FluentSetters>
156}