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: 74   Methods: 0
NCLOC: 9   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.hivemind.schema.Schema;
 18   
 
 19   
 /**
 20   
  * Sub-interface of {@link org.apache.hivemind.ExtensionPoint}
 21   
  * that defines a service extension point.  A service may have
 22   
  * a single factory contribution, and any number of interceptor
 23   
  * contributions.
 24   
  *
 25   
  * @author Howard Lewis Ship
 26   
  */
 27   
 public interface ServicePoint extends ExtensionPoint
 28   
 {
 29   
     /**
 30   
      * Returns the type of the service, the interface the service
 31   
      * implements.
 32   
      */
 33   
     public Class getServiceInterface();
 34   
 
 35   
     /**
 36   
      * Obtains the full service implementation for this service extension point, an
 37   
      * object that implements the service interface. Because of the different service models,
 38   
      * and because of the possibility of interceptors, the exact class and object returned
 39   
      * can't be specified (and may vary at different times), but that is not relevant
 40   
      * to client code, which is assured that it can invoke
 41   
      * the service methods defined by the service interface.
 42   
      * 
 43   
      * 
 44   
      * @param interfaceClass the class that the service will be cast to;
 45   
      * a check is made that the service is assignable to
 46   
      * the indicated interface.  It does not have to, necessarily,
 47   
      * match the service interface (it could be a super-interface, for example).
 48   
      * 
 49   
      * @return the outermost interceptor for the service, or the
 50   
      * core implementation if there are no interceptors.
 51   
      * 
 52   
      * @throws org.apache.tapestry.ApplicationRuntimeException if there
 53   
      * is any problem creating the service.
 54   
      */
 55   
     public Object getService(Class interfaceClass);
 56   
 
 57   
     /**
 58   
      * Returns the {@link Schema} used to process any parameters
 59   
      * passed to the service.  Service implementation factories
 60   
      * and service interceptor factories allow parameters.
 61   
      * 
 62   
      **/
 63   
 
 64   
     public Schema getParametersSchema();
 65   
     
 66   
     /**
 67   
      * Forces the service to be fully instantiated immediately, rather than
 68   
      * lazily.
 69   
      */
 70   
     
 71   
     public void forceServiceInstantiation();
 72   
     
 73   
 }
 74