Clover coverage report - Code Coverage for hivemind release 1.0
Coverage timestamp: Wed Sep 22 2004 08:05:25 EDT
file stats: LOC: 88   Methods: 0
NCLOC: 13   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
ServicePoint.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.internal;
 16   
 
 17   
 import org.apache.commons.logging.Log;
 18   
 import org.apache.hivemind.Occurances;
 19   
 import org.apache.hivemind.schema.Schema;
 20   
 
 21   
 /**
 22   
  * Sub-interface of {@link org.apache.hivemind.ExtensionPoint}
 23   
  * that defines a service extension point.  A service may have
 24   
  * a single factory contribution, and any number of interceptor
 25   
  * contributions.
 26   
  *
 27   
  * @author Howard Lewis Ship
 28   
  */
 29   
 public interface ServicePoint extends ExtensionPoint
 30   
 {
 31   
     /**
 32   
      * Returns the type of the service, the interface the service
 33   
      * implements.
 34   
      */
 35   
     public Class getServiceInterface();
 36   
 
 37   
     /**
 38   
      * Obtains the full service implementation for this service extension point, an
 39   
      * object that implements the service interface. Because of the different service models,
 40   
      * and because of the possibility of interceptors, the exact class and object returned
 41   
      * can't be specified (and may vary at different times), but that is not relevant
 42   
      * to client code, which is assured that it can invoke
 43   
      * the service methods defined by the service interface.
 44   
      * 
 45   
      * 
 46   
      * @param interfaceClass the class that the service will be cast to;
 47   
      * a check is made that the service is assignable to
 48   
      * the indicated interface.  It does not have to, necessarily,
 49   
      * match the service interface (it could be a super-interface, for example).
 50   
      * 
 51   
      * @return the outermost interceptor for the service, or the
 52   
      * core implementation if there are no interceptors.
 53   
      * 
 54   
      * @throws org.apache.tapestry.ApplicationRuntimeException if there
 55   
      * is any problem creating the service.
 56   
      */
 57   
     public Object getService(Class interfaceClass);
 58   
 
 59   
     /**
 60   
      * Returns the {@link Schema} used to process any parameters
 61   
      * passed to the service.  Service implementation factories
 62   
      * and service interceptor factories allow parameters.
 63   
      * 
 64   
      **/
 65   
 
 66   
     public Schema getParametersSchema();
 67   
     
 68   
     /**
 69   
      * Returns the number of parameter object expected; generally this
 70   
      * is the default of exactly one ({@link Occurances#REQUIRED}).
 71   
      */
 72   
     public Occurances getParametersCount();
 73   
     
 74   
     /**
 75   
      * Forces the service to be fully instantiated immediately, rather than
 76   
      * lazily.
 77   
      */
 78   
     
 79   
     public void forceServiceInstantiation();
 80   
     
 81   
     /**
 82   
      * Returns the Log instance for this service point.
 83   
      */
 84   
     
 85   
     public Log getServiceLog();
 86   
     
 87   
 }
 88