1 23 24 28 29 package com.sun.enterprise.admin.selfmanagement.event; 30 31 import javax.management.MBeanServer ; 32 import javax.management.NotificationEmitter ; 33 34 import com.sun.enterprise.admin.common.MBeanServerFactory; 35 import com.sun.enterprise.config.serverbeans.ElementProperty; 36 import java.util.logging.Logger ; 37 import java.util.logging.Level ; 38 import com.sun.logging.LogDomains; 39 import com.sun.enterprise.util.i18n.StringManager; 40 41 42 43 47 public abstract class EventAbstractFactory { 48 49 private MBeanServer mbeanServer; 50 protected static StringManager sm = StringManager.getManager(EventAbstractFactory.class); 51 protected static Logger _logger = LogDomains.getLogger(LogDomains.SELF_MANAGEMENT_LOGGER); 52 53 public EventAbstractFactory( ) { 54 mbeanServer = 55 MBeanServerFactory.getMBeanServer(); 56 } 57 58 public abstract Event instrumentEvent( 59 ElementProperty[] properties, String description ); 60 61 public MBeanServer getMBeanServer( ) { 62 return mbeanServer; 63 } 64 } 65 | Popular Tags |