1 25 26 package org.objectweb.jonas.management.j2eemanagement; 27 28 import org.objectweb.jonas.management.ReconfigDispatcher; 29 30 34 public class J2EEManagedObject extends ReconfigDispatcher { 35 36 43 public static final String NAME = "name"; 44 45 48 public static final String J2EE_TYPE_SERVER = "J2EEServer"; 49 50 53 public static final String J2EE_TYPE_APPLICATION = "J2EEApplication"; 54 55 57 60 private String objectName; 61 62 65 private boolean stateManageable; 66 67 70 private boolean statisticsProvider; 71 72 75 private boolean eventProvider; 76 77 79 83 protected J2EEManagedObject(String objectName) { 84 this.objectName = objectName; 85 this.stateManageable = false; 86 this.statisticsProvider = false; 87 this.eventProvider = false; 88 } 89 90 100 protected J2EEManagedObject(String objectName, boolean stateManageable, boolean statisticsProvider, 101 boolean eventProvider) { 102 this.objectName = objectName; 103 this.stateManageable = stateManageable; 104 this.statisticsProvider = statisticsProvider; 105 this.eventProvider = eventProvider; 106 } 107 108 111 115 public String getObjectName() { 116 return objectName; 117 } 118 119 122 public boolean isEventProvider() { 123 return eventProvider; 124 } 125 126 130 public boolean isStateManageable() { 131 return stateManageable; 132 } 133 134 138 public boolean isStatisticsProvider() { 139 return statisticsProvider; 140 } 141 142 } 143 | Popular Tags |