1 23 24 29 30 package com.sun.enterprise.admin.jmx.remote.server.callers; 31 32 import java.util.Set ; 33 import java.util.HashSet ; 34 import java.util.Collections ; 35 import javax.management.MBeanServerConnection ; 36 37 import com.sun.enterprise.admin.jmx.remote.server.notification.ServerNotificationManager; 38 39 44 public class MethodCallers { 45 46 47 48 private MethodCallers() { 49 } 50 51 52 public static Set callers(MBeanServerConnection mbsc, ServerNotificationManager mgr) { 54 55 final Set callers = new HashSet (); 56 57 buildCallers(callers, mbsc, mgr); 59 60 return ( Collections.unmodifiableSet(callers) ); 61 } 62 63 64 private static void buildCallers(Set s, MBeanServerConnection mbsc, 66 ServerNotificationManager mgr) { 67 68 70 s.add(new AddNotifLsnrObjNameCaller(mbsc, mgr)); 73 s.add(new AddNotifLsnrsCaller(mbsc, mgr)); 74 75 s.add(new CreateMBeanCaller(mbsc)); 76 s.add(new CreateMBeanLoaderCaller(mbsc)); 77 s.add(new CreateMBeanLoaderParamsCaller(mbsc)); 78 s.add(new CreateMBeanParamsCaller(mbsc)); 79 s.add(new GetAttributeCaller(mbsc)); 80 s.add(new GetAttributesCaller(mbsc)); 81 s.add(new GetDefaultDomainCaller(mbsc)); 82 s.add(new GetDomainsCaller(mbsc)); 83 s.add(new GetMBeanCountCaller(mbsc)); 84 s.add(new GetMBeanInfoCaller(mbsc)); 85 s.add(new GetObjectInstanceCaller(mbsc)); 86 s.add(new InvokeCaller(mbsc)); 87 s.add(new IsInstanceOfCaller(mbsc)); 88 s.add(new IsRegisteredCaller(mbsc)); 89 s.add(new QueryMBeansCaller(mbsc)); 90 s.add(new QueryNamesCaller(mbsc)); 91 92 s.add(new RemoveNotifLsnrCaller(mbsc, mgr)); 95 s.add(new RemoveNotifLsnrFilterHandbackCaller(mbsc, mgr)); 96 97 s.add(new RemoveNotifLsnrObjNameCaller(mbsc)); 98 99 s.add(new RemoveNotifLsnrObjNameFilterHandbackCaller(mbsc, mgr)); 101 102 s.add(new SetAttributeCaller(mbsc)); 103 s.add(new SetAttributesCaller(mbsc)); 104 s.add(new UnregisterMBeanCaller(mbsc)); 105 } 106 } 107 | Popular Tags |