Clover coverage report - Code Coverage for hivemind release 1.0-rc-2
Coverage timestamp: Sat Sep 11 2004 09:09:48 EDT
file stats: LOC: 48   Methods: 0
NCLOC: 6   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
ServiceModel.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   
 /**
 18   
  * A service model is associated with a {@link org.apache.hivemind.ServicePoint}
 19   
  * to supply rules for the lifecycle of the service. This concerns when the service is
 20   
  * first created and whether it is pooled, etc. Each service extension point
 21   
  * will have a unique instance of ServiceModel.
 22   
  *
 23   
  * @author Howard Lewis Ship
 24   
  */
 25   
 public interface ServiceModel
 26   
 {
 27   
     /**
 28   
      * Invoked by the service extension point
 29   
      * to obtain the service implementation. The model
 30   
      * may return the actual service implementation or some form of proxy.
 31   
      * 
 32   
      * <p>
 33   
      * This method is only invoked <em>once</em>; the returned value is used
 34   
      * from that point on (in all threads, by all callers). Most models return a proxy
 35   
      * that takes care of realizing the service (actually creating the service, configuring it, and
 36   
      * wrapping it with interceptors) only when needed.
 37   
      */
 38   
 
 39   
     public Object getService();
 40   
     
 41   
     /**
 42   
      * Forces the core service implementation (and any interceptors) to be fully instantiated
 43   
      * immediately, rather than waiting for the first service method invocation.  This is used
 44   
      * when a service needs to be "eagerly loaded" rather than "lazy loaded".
 45   
      */
 46   
     public void instantiateService();
 47   
 }
 48