1 15 package org.apache.hivemind.impl.servicemodel; 16 17 import org.apache.hivemind.impl.ConstructableServicePoint; 18 19 25 public final class PrimitiveServiceModel extends AbstractServiceModelImpl 26 { 27 private Object _constructedService; 28 29 public PrimitiveServiceModel(ConstructableServicePoint servicePoint) 30 { 31 super(servicePoint); 32 } 33 34 37 public synchronized Object getService() 38 { 39 if (_constructedService == null) 40 { 41 _constructedService = constructServiceImplementation(); 42 43 registerWithShutdownCoordinator(_constructedService); 44 } 45 46 51 return _constructedService; 52 } 53 54 58 public void instantiateService() 59 { 60 getService(); 61 } 62 63 } | Popular Tags |