1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.MBeanInfo ; 28 29 import com.sun.enterprise.admin.common.exception.JCAAdminException; 31 import com.sun.enterprise.admin.common.ResourceAdapterInfo; 32 import com.sun.enterprise.admin.server.core.mbean.meta.MBeanEasyConfig; 33 34 import java.util.Properties ; 36 import java.util.List ; 37 38 44 45 public class JCAAdminHandler extends AdminBase { 46 47 public JCAAdminHandler() { 48 } 49 50 53 public Object [] listResourceAdapterNames(String iASInstanceName) throws JCAAdminException { 54 return null; 55 } 56 57 60 public ResourceAdapterInfo getResourceAdapterProperties(String iasInstanceName, 61 String adapterName) throws JCAAdminException { 62 return null; 63 } 64 65 68 public Object getResourceAdapterInstanceProperty(String iasInstanceName, String adapterInstance, 69 String propertyName) throws JCAAdminException { 70 return new Object (); 71 } 72 80 protected Class getImplementingClass() { 81 return ( this.getClass() ); 82 } 83 84 85 protected Object getImplementingMBean() { 86 return ( this ); 87 } 88 93 public MBeanInfo getMBeanInfo() 94 { 95 try { 96 return (new MBeanEasyConfig(getClass(), mAttrs, mOpers, null)).getMBeanInfo(); 97 } 98 catch(Exception e) { 99 e.printStackTrace(); 100 return null; 101 } 102 } 103 104 final String [] mAttrs = new String [0]; 105 106 final String [] mOpers = new String [] 107 { 108 "getResourceAdapterInstanceProperty(String iasInstanceName, String adapterInstance), INFO", 109 "getResourceAdapterProperties(String iasInstanceName, String adapterName), INFO", 110 "listResourceAdapterNames(String iASInstanceName), INFO", 111 }; 112 } 113 | Popular Tags |