- Timestamp:
- 05/24/08 14:37:02 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/trunk/src/api/org/openmrs/api/context/ServiceContext.java
r4158 r4358 28 28 import org.openmrs.api.EncounterService; 29 29 import org.openmrs.api.FormService; 30 import org.openmrs.api.LocationService; 30 31 import org.openmrs.api.ObsService; 31 32 import org.openmrs.api.OrderService; … … 141 142 return (EncounterService)getService(EncounterService.class); 142 143 } 144 145 /** 146 * @return location services 147 */ 148 public LocationService getLocationService() { 149 return (LocationService)getService(LocationService.class); 150 } 143 151 144 152 /** … … 324 332 } 325 333 334 /** 335 * @param locationService the LocationService to set 336 */ 337 public void setLocationService(LocationService locationService) { 338 setService(LocationService.class, locationService); 339 } 340 326 341 /** 327 342 * @param formService the formService to set … … 502 517 @SuppressWarnings("unchecked") 503 518 public Object getService(Class cls) { 504 if (log.is DebugEnabled())505 log. debug("Getting service: " + cls);519 if (log.isTraceEnabled()) 520 log.trace("Getting service: " + cls); 506 521 507 522 // if the context is refreshing, wait until it is