Clover coverage report - Code Coverage for hivemind release 1.1-alpha-1
Coverage timestamp: Tue Jan 18 2005 07:55:08 EST
file stats: LOC: 79   Methods: 0
NCLOC: 11   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, 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.hivemind.internal;
 16   
 
 17   
 import org.apache.hivemind.Occurances;
 18   
 import org.apache.hivemind.schema.Schema;
 19   
 
 20   
 /**
 21   
  * Sub-interface of {@link org.apache.hivemind.ExtensionPoint}that defines a service extension
 22   
  * point. A service may have 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 implements.
 31   
      */
 32   
     public Class getServiceInterface();
 33   
 
 34   
     /**
 35   
      * Returns the fully qualified class name of the service interface. This is useful so that
 36   
      * loading the actual service interface class can be deferred as late as possible.
 37   
      * 
 38   
      * @since 1.1
 39   
      */
 40   
 
 41   
     public String getServiceInterfaceClassName();
 42   
 
 43   
     /**
 44   
      * Obtains the full service implementation for this service extension point, an object that
 45   
      * implements the service interface. Because of the different service models, and because of the
 46   
      * possibility of interceptors, the exact class and object returned can't be specified (and may
 47   
      * vary at different times), but that is not relevant to client code, which is assured that it
 48   
      * can invoke the service methods defined by the service interface.
 49   
      * 
 50   
      * @param interfaceClass
 51   
      *            the class that the service will be cast to; a check is made that the service is
 52   
      *            assignable to the indicated interface. It does not have to, necessarily, match the
 53   
      *            service interface (it could be a super-interface, for example).
 54   
      * @return the outermost interceptor for the service, or the core implementation if there are no
 55   
      *         interceptors.
 56   
      * @throws org.apache.tapestry.ApplicationRuntimeException
 57   
      *             if there is any problem creating the service.
 58   
      */
 59   
     public Object getService(Class interfaceClass);
 60   
 
 61   
     /**
 62   
      * Returns the {@link Schema}used to process any parameters passed to the service. Service
 63   
      * implementation factories and service interceptor factories allow parameters.
 64   
      */
 65   
 
 66   
     public Schema getParametersSchema();
 67   
 
 68   
     /**
 69   
      * Returns the number of parameter object expected; generally this is the default of exactly one (
 70   
      * {@link Occurances#REQUIRED}).
 71   
      */
 72   
     public Occurances getParametersCount();
 73   
 
 74   
     /**
 75   
      * Forces the service to be fully instantiated immediately, rather than lazily.
 76   
      */
 77   
 
 78   
     public void forceServiceInstantiation();
 79   
 }