1 23 24 package com.sun.enterprise.management.model; 25 26 import javax.management.ObjectName ; 27 import java.util.Set ; 28 29 public abstract class J2EEResourceMdl extends J2EEManagedObjectMdl { 30 31 private String resourceName; 32 J2EEResourceMdl(String name) { 33 super(name,false, false, false); 34 this.resourceName = name; 35 } 36 40 public String getobjectName() { 41 Set s = findNames("j2eeType="+getj2eeType()+",name="+this.resourceName+",J2EEServer="+getJ2EEServer()); 42 Object [] objs = s.toArray(); 43 if (objs.length > 0) { 44 String name = ((ObjectName )objs[0]).toString(); 45 return name; 46 } else { 47 return null; 48 } 49 } 50 } 51 | Popular Tags |