1 22 package org.jboss.system; 23 24 import javax.management.ObjectInstance ; 25 26 32 public class ServiceInstance 33 { 34 35 private ObjectInstance objectInstance; 36 37 38 private Object resource; 39 40 43 public ServiceInstance() 44 { 45 } 46 47 53 public ServiceInstance(ObjectInstance objectInstance, Object resource) 54 { 55 this.objectInstance = objectInstance; 56 this.resource = resource; 57 } 58 59 64 public Object getResource() 65 { 66 return resource; 67 } 68 69 74 public ObjectInstance getObjectInstance() 75 { 76 return objectInstance; 77 } 78 } 79 | Popular Tags |