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.rest.debug; 014 015import org.apache.juneau.*; 016import org.apache.juneau.utils.*; 017 018/** 019 * A reflection map for the {@link Enablement} setting. 020 * 021 * <h5 class='section'>See Also:</h5><ul> 022 * <li class='link'><a class="doclink" href="../../../../../index.html#jrs.LoggingAndDebugging">Logging / Debugging</a> 023 * </ul> 024 */ 025public class DebugEnablementMap extends ReflectionMap<Enablement> { 026 027 //----------------------------------------------------------------------------------------------------------------- 028 // Static 029 //----------------------------------------------------------------------------------------------------------------- 030 031 /** 032 * Static builder creator. 033 * 034 * @return A new instance of the builder for this object. 035 */ 036 public static Builder create() { 037 return new Builder(); 038 } 039 040 //----------------------------------------------------------------------------------------------------------------- 041 // Builder 042 //----------------------------------------------------------------------------------------------------------------- 043 044 /** 045 * Builder class. 046 */ 047 public static class Builder extends ReflectionMap.Builder<Enablement> { 048 049 /** 050 * Constructor. 051 */ 052 protected Builder() { 053 } 054 055 @Override /* ReflectionMapBuilder */ 056 public DebugEnablementMap build() { 057 return new DebugEnablementMap(this); 058 } 059 } 060 061 //----------------------------------------------------------------------------------------------------------------- 062 // Instance 063 //----------------------------------------------------------------------------------------------------------------- 064 065 /** 066 * Constructor. 067 * 068 * @param builder The builder. 069 */ 070 protected DebugEnablementMap(Builder builder) { 071 super(builder); 072 } 073}