1 package org.wamblee.system;
4 * Default service implementation.
6 public class DefaultService implements Service {
8 private ServiceDescriptor _descriptor;
9 private Object _service;
12 * Constructs the service.
13 * @param aDescriptor Descriptor to use.
14 * @param aService Service.
16 public DefaultService(ServiceDescriptor aDescriptor, Object aService) {
17 _descriptor = aDescriptor;
22 public ServiceDescriptor getDescriptor() {
27 public <T> T reference(Class<T> aClass) {
32 public String toString() {
33 return "(" + _descriptor + ", " + _service + ")";