Clover coverage report - Code Coverage for hivemind release 1.0-beta-1
Coverage timestamp: Sat Jul 3 2004 09:41:37 EDT
file stats: LOC: 62   Methods: 0
NCLOC: 10   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
InterceptorStack.java - - - -
coverage
 1   
 //  Copyright 2004 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.hivemind;
 16   
 
 17   
 import org.apache.hivemind.internal.Module;
 18   
 
 19   
 /**
 20   
  * Used when constructing an interceptor stack around
 21   
  * a service implementation instance.
 22   
  *
 23   
  * @author Howard Lewis Ship
 24   
  */
 25   
 public interface InterceptorStack
 26   
 {    
 27   
     /**
 28   
      * Return the full id of the service extension point for which
 29   
      * interceptors are being fabricated.
 30   
      */
 31   
     
 32   
     public String getServiceExtensionPointId();
 33   
     
 34   
     /**
 35   
      * Returns the module which contains the service extension point.
 36   
      */
 37   
     
 38   
     public Module getServiceModule();
 39   
     
 40   
     /**
 41   
      * Returns the interface for the service; the same
 42   
      * as {@link ServicePoint#getServiceInterface()}.
 43   
      */
 44   
     public Class getServiceInterface();
 45   
     
 46   
     /**
 47   
      * Returns the current top object on the stack.
 48   
      */
 49   
     public Object peek();
 50   
     
 51   
     /**
 52   
      * Pushes a new instance onto the stack.  The new instance
 53   
      * should be a wrapper around {@link #peek()}, and should
 54   
      * implement the service extension point's interface.
 55   
      * 
 56   
      * <p>The stack checks that the interceptor is not null,
 57   
      * and that the interceptor implements the service interface.
 58   
      */
 59   
     
 60   
     public void push(Object interceptor);
 61   
 }
 62