1 18 package org.osgi.service.cm; 19 20 import org.osgi.framework.ServiceReference; 21 22 52 public class ConfigurationEvent { 53 66 public static final int CM_UPDATED = 1; 67 80 public static final int CM_DELETED = 2; 81 86 private final int type; 87 90 private final String factoryPid; 91 94 private final String pid; 95 98 private final ServiceReference reference; 99 100 113 public ConfigurationEvent(ServiceReference reference, int type, 114 String factoryPid, String pid) { 115 this.reference = reference; 116 this.type = type; 117 this.factoryPid = factoryPid; 118 this.pid = pid; 119 } 120 121 129 public String getFactoryPid() { 130 return factoryPid; 131 } 132 133 138 public String getPid() { 139 return pid; 140 } 141 142 153 public int getType() { 154 return type; 155 } 156 157 164 public ServiceReference getReference() { 165 return reference; 166 } 167 } 168 | Popular Tags |