Coverage Report - net.admin4j.config.Configurable
 
Classes in this File Line Coverage Branch Coverage Complexity
Configurable
N/A
N/A
1
 
 1  
 /*
 2  
  * This software is licensed under the Apache License, Version 2.0
 3  
  * (the "License") agreement; you may not use this file except in compliance with
 4  
  * the License.  You may obtain a copy of the License at
 5  
  *
 6  
  *      http://www.apache.org/licenses/LICENSE-2.0
 7  
  *
 8  
  * Unless required by applicable law or agreed to in writing, software
 9  
  * distributed under the License is distributed on an "AS IS" BASIS,
 10  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 11  
  * See the License for the specific language governing permissions and
 12  
  * limitations under the License.
 13  
  */
 14  
 package net.admin4j.config;
 15  
 
 16  
 import java.util.Properties;
 17  
 
 18  
 import javax.servlet.FilterConfig;
 19  
 import javax.servlet.ServletConfig;
 20  
 import javax.servlet.ServletException;
 21  
 
 22  
 /**
 23  
  * Indicates that the class can be configurable.
 24  
  *
 25  
  * @author D. Ashmore
 26  
  *
 27  
  */
 28  
 public interface Configurable {
 29  
 
 30  
         /**
 31  
          * Will configure the Notifier directly from a Servlet Filter configuration.
 32  
          * 
 33  
          * @param config
 34  
          * @throws ServletException
 35  
          */
 36  
         public void configure(FilterConfig config) throws ServletException;
 37  
 
 38  
         /**
 39  
          * Will configure the Notifier directly from a Servlet configuration.
 40  
          * 
 41  
          * @param config
 42  
          * @throws ServletException
 43  
          */
 44  
         public void configure(ServletConfig config) throws ServletException;
 45  
 
 46  
         /**
 47  
          * Will configure the Notifier from a properties configufation
 48  
          * 
 49  
          * @param namePrefix
 50  
          * @param config
 51  
          * @throws ServletException
 52  
          */
 53  
         public void configure(String namePrefix, Properties config);
 54  
 
 55  
 }