Clover coverage report - Code Coverage for tapestry release 3.1-alpha-1
Coverage timestamp: Mon Feb 21 2005 09:16:14 EST
file stats: LOC: 58   Methods: 0
NCLOC: 15   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
IExtensionSpecification.java - - - -
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.spec;
 16   
 
 17   
 import java.util.Map;
 18   
 
 19   
 import org.apache.hivemind.ClassResolver;
 20   
 import org.apache.hivemind.LocationHolder;
 21   
 import org.apache.tapestry.coerce.ValueConverter;
 22   
 import org.apache.tapestry.util.IPropertyHolder;
 23   
 
 24   
 /**
 25   
  * Defines an "extension", which is much like a helper bean, but is part of a library or application
 26   
  * specification (and has the same lifecycle as the application).
 27   
  * 
 28   
  * @author glongman@intelligentworks.com
 29   
  */
 30   
 public interface IExtensionSpecification extends IPropertyHolder, LocationHolder
 31   
 {
 32   
     public abstract String getClassName();
 33   
 
 34   
     public abstract void setClassName(String className);
 35   
 
 36   
     public abstract void addConfiguration(String propertyName, String value);
 37   
 
 38   
     /**
 39   
      * Returns an immutable Map of the configuration; keyed on property name, with values as
 40   
      * properties to assign.
 41   
      */
 42   
     public abstract Map getConfiguration();
 43   
 
 44   
     /**
 45   
      * Invoked to instantiate an instance of the extension and return it. It also configures
 46   
      * properties of the extension.
 47   
      */
 48   
     public abstract Object instantiateExtension();
 49   
 
 50   
     /**
 51   
      * Returns true if the extensions should be instantiated immediately after the containing
 52   
      * {@link org.apache.tapestry.spec.LibrarySpecification}if parsed. Non-immediate extensions are
 53   
      * instantiated only as needed.
 54   
      */
 55   
     public abstract boolean isImmediate();
 56   
 
 57   
     public abstract void setImmediate(boolean immediate);
 58   
 }