Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
Pierre De Rop | bd642a6 | 2009-12-04 22:50:31 +0000 | [diff] [blame] | 19 | package org.apache.felix.dm.impl.dependencies; |
Marcel Offermans | e14b342 | 2009-11-25 23:04:32 +0000 | [diff] [blame] | 20 | |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 21 | import java.lang.reflect.InvocationTargetException; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 22 | import java.util.ArrayList; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 23 | import java.util.Dictionary; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 24 | import java.util.HashSet; |
| 25 | import java.util.List; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 26 | import java.util.Properties; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 27 | import java.util.Set; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 28 | |
Marcel Offermans | 8b93efa | 2010-07-02 18:27:21 +0000 | [diff] [blame] | 29 | import org.apache.felix.dm.ConfigurationDependency; |
| 30 | import org.apache.felix.dm.Dependency; |
Marcel Offermans | 3d92121 | 2010-08-09 13:37:02 +0000 | [diff] [blame^] | 31 | import org.apache.felix.dm.DependencyActivation; |
| 32 | import org.apache.felix.dm.DependencyService; |
Marcel Offermans | 8b93efa | 2010-07-02 18:27:21 +0000 | [diff] [blame] | 33 | import org.apache.felix.dm.PropertyMetaData; |
| 34 | import org.apache.felix.dm.ServiceComponentDependency; |
Marcel Offermans | 157e711 | 2010-06-18 10:40:08 +0000 | [diff] [blame] | 35 | import org.apache.felix.dm.impl.InvocationUtil; |
Pierre De Rop | bd642a6 | 2009-12-04 22:50:31 +0000 | [diff] [blame] | 36 | import org.apache.felix.dm.impl.Logger; |
Pierre De Rop | a0204f5 | 2010-03-06 22:23:57 +0000 | [diff] [blame] | 37 | import org.apache.felix.dm.impl.metatype.MetaTypeProviderImpl; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 38 | import org.osgi.framework.BundleContext; |
| 39 | import org.osgi.framework.Constants; |
| 40 | import org.osgi.framework.ServiceRegistration; |
| 41 | import org.osgi.service.cm.ConfigurationException; |
| 42 | import org.osgi.service.cm.ManagedService; |
Marcel Offermans | 26081d3 | 2010-07-12 12:43:42 +0000 | [diff] [blame] | 43 | import org.osgi.service.log.LogService; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 44 | |
| 45 | /** |
| 46 | * Configuration dependency that can track the availability of a (valid) configuration. |
| 47 | * To use it, specify a PID for the configuration. The dependency is always required, |
| 48 | * because if it is not, it does not make sense to use the dependency manager. In that |
| 49 | * scenario, simply register your service as a <code>ManagedService(Factory)</code> and |
| 50 | * handle everything yourself. Also, only managed services are supported, not factories. |
| 51 | * There are a couple of things you need to be aware of when implementing the |
| 52 | * <code>updated(Dictionary)</code> method: |
| 53 | * <ul> |
| 54 | * <li>Make sure it throws a <code>ConfigurationException</code> when you get a |
| 55 | * configuration that is invalid. In this case, the dependency will not change: |
| 56 | * if it was not available, it will still not be. If it was available, it will |
| 57 | * remain available and implicitly assume you keep working with your old |
| 58 | * configuration.</li> |
| 59 | * <li>This method will be called before all required dependencies are available. |
| 60 | * Make sure you do not depend on these to parse your settings.</li> |
| 61 | * </ul> |
| 62 | * |
| 63 | * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> |
| 64 | */ |
Marcel Offermans | 61a8114 | 2010-04-02 15:16:50 +0000 | [diff] [blame] | 65 | public class ConfigurationDependencyImpl extends DependencyBase implements ConfigurationDependency, ManagedService, ServiceComponentDependency, DependencyActivation { |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 66 | private BundleContext m_context; |
| 67 | private String m_pid; |
| 68 | private ServiceRegistration m_registration; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 69 | protected List m_services = new ArrayList(); |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 70 | private Dictionary m_settings; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 71 | private String m_callback; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 72 | private boolean m_isStarted; |
| 73 | private final Set m_updateInvokedCache = new HashSet(); |
Pierre De Rop | a0204f5 | 2010-03-06 22:23:57 +0000 | [diff] [blame] | 74 | private MetaTypeProviderImpl m_metaType; |
Marcel Offermans | 26081d3 | 2010-07-12 12:43:42 +0000 | [diff] [blame] | 75 | private boolean m_propagate; |
| 76 | private Object m_propagateCallbackInstance; |
| 77 | private String m_propagateCallbackMethod; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 78 | |
Pierre De Rop | bd642a6 | 2009-12-04 22:50:31 +0000 | [diff] [blame] | 79 | public ConfigurationDependencyImpl(BundleContext context, Logger logger) { |
Marcel Offermans | 61a8114 | 2010-04-02 15:16:50 +0000 | [diff] [blame] | 80 | super(logger); |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 81 | m_context = context; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 82 | } |
| 83 | |
Marcel Offermans | b1959f4 | 2010-07-01 12:23:51 +0000 | [diff] [blame] | 84 | public ConfigurationDependencyImpl(ConfigurationDependencyImpl prototype) { |
| 85 | super(prototype); |
| 86 | m_context = prototype.m_context; |
| 87 | m_pid = prototype.m_pid; |
| 88 | m_propagate = prototype.m_propagate; |
| 89 | m_callback = prototype.m_callback; |
| 90 | } |
| 91 | |
| 92 | public Dependency createCopy() { |
| 93 | return new ConfigurationDependencyImpl(this); |
| 94 | } |
| 95 | |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 96 | public synchronized boolean isAvailable() { |
| 97 | return m_settings != null; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Will always return <code>true</code> as optional configuration dependencies |
| 102 | * do not make sense. You might as well just implement <code>ManagedService</code> |
| 103 | * yourself in those cases. |
| 104 | */ |
| 105 | public boolean isRequired() { |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Returns <code>true</code> when configuration properties should be propagated |
| 111 | * as service properties. |
| 112 | */ |
| 113 | public boolean isPropagated() { |
| 114 | return m_propagate; |
| 115 | } |
| 116 | |
Marcel Offermans | 61a8114 | 2010-04-02 15:16:50 +0000 | [diff] [blame] | 117 | public ConfigurationDependency setInstanceBound(boolean isInstanceBound) { |
| 118 | setIsInstanceBound(isInstanceBound); |
| 119 | return this; |
| 120 | } |
| 121 | |
| 122 | |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 123 | public Dictionary getConfiguration() { |
| 124 | return m_settings; |
| 125 | } |
| 126 | |
Marcel Offermans | e14b342 | 2009-11-25 23:04:32 +0000 | [diff] [blame] | 127 | public void start(DependencyService service) { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 128 | boolean needsStarting = false; |
| 129 | synchronized (this) { |
| 130 | m_services.add(service); |
| 131 | if (!m_isStarted) { |
| 132 | m_isStarted = true; |
| 133 | needsStarting = true; |
| 134 | } |
| 135 | } |
| 136 | if (needsStarting) { |
| 137 | Properties props = new Properties(); |
| 138 | props.put(Constants.SERVICE_PID, m_pid); |
Pierre De Rop | a0204f5 | 2010-03-06 22:23:57 +0000 | [diff] [blame] | 139 | ManagedService ms = this; |
| 140 | if (m_metaType != null) { |
| 141 | ms = m_metaType; |
| 142 | } |
| 143 | m_registration = m_context.registerService(ManagedService.class.getName(), ms, props); |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 144 | } |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 145 | } |
| 146 | |
Marcel Offermans | e14b342 | 2009-11-25 23:04:32 +0000 | [diff] [blame] | 147 | public void stop(DependencyService service) { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 148 | boolean needsStopping = false; |
| 149 | synchronized (this) { |
| 150 | if (m_services.size() == 1 && m_services.contains(service)) { |
| 151 | m_isStarted = false; |
| 152 | needsStopping = true; |
| 153 | } |
| 154 | } |
| 155 | if (needsStopping) { |
| 156 | m_registration.unregister(); |
| 157 | m_registration = null; |
| 158 | m_services.remove(service); |
| 159 | } |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 160 | } |
| 161 | |
Pierre De Rop | bd642a6 | 2009-12-04 22:50:31 +0000 | [diff] [blame] | 162 | public ConfigurationDependency setCallback(String callback) { |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 163 | m_callback = callback; |
| 164 | return this; |
| 165 | } |
| 166 | |
| 167 | public void updated(Dictionary settings) throws ConfigurationException { |
Marcel Offermans | cac806f | 2009-12-22 22:16:43 +0000 | [diff] [blame] | 168 | synchronized (m_updateInvokedCache) { |
| 169 | m_updateInvokedCache.clear(); |
| 170 | } |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 171 | Dictionary oldSettings = null; |
| 172 | synchronized (this) { |
| 173 | oldSettings = m_settings; |
| 174 | } |
| 175 | |
| 176 | if (oldSettings == null && settings == null) { |
| 177 | // CM has started but our configuration is not still present in the CM database: ignore |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | Object[] services = m_services.toArray(); |
| 182 | for (int i = 0; i < services.length; i++) { |
| 183 | DependencyService ds = (DependencyService) services[i]; |
| 184 | // if non-null settings come in, we have to instantiate the service and |
| 185 | // apply these settings |
| 186 | ds.initService(); |
| 187 | Object service = ds.getService(); |
| 188 | |
| 189 | if (service != null) { |
| 190 | invokeUpdate(ds, service, settings); |
| 191 | } |
| 192 | else { |
| 193 | m_logger.log(Logger.LOG_ERROR, "Service " + ds + " with configuration dependency " + this + " could not be instantiated."); |
| 194 | return; |
| 195 | } |
| 196 | } |
| 197 | |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 198 | synchronized (this) { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 199 | m_settings = settings; |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 200 | } |
| 201 | |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 202 | for (int i = 0; i < services.length; i++) { |
| 203 | DependencyService ds = (DependencyService) services[i]; |
| 204 | // If these settings did not cause a configuration exception, we determine if they have |
| 205 | // caused the dependency state to change |
| 206 | if ((oldSettings == null) && (settings != null)) { |
| 207 | ds.dependencyAvailable(this); |
| 208 | } |
| 209 | if ((oldSettings != null) && (settings == null)) { |
| 210 | ds.dependencyUnavailable(this); |
| 211 | } |
| 212 | if ((oldSettings != null) && (settings != null)) { |
| 213 | ds.dependencyChanged(this); |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | public void invokeUpdate(DependencyService ds, Object service, Dictionary settings) throws ConfigurationException { |
Marcel Offermans | cac806f | 2009-12-22 22:16:43 +0000 | [diff] [blame] | 219 | boolean wasAdded; |
| 220 | synchronized (m_updateInvokedCache) { |
| 221 | wasAdded = m_updateInvokedCache.add(ds); |
| 222 | } |
| 223 | if (wasAdded) { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 224 | String callback = (m_callback == null) ? "updated" : m_callback; |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 225 | try { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 226 | // if exception is thrown here, what does that mean for the |
| 227 | // state of this dependency? how smart do we want to be?? |
| 228 | // it's okay like this, if the new settings contain errors, we |
| 229 | // remain in the state we were, assuming that any error causes |
| 230 | // the "old" configuration to stay in effect. |
| 231 | // CM will log any thrown exceptions. |
Marcel Offermans | 157e711 | 2010-06-18 10:40:08 +0000 | [diff] [blame] | 232 | InvocationUtil.invokeMethod(service, service.getClass(), callback, new Class[][] {{ Dictionary.class }}, new Object[][] {{ settings }}, false); |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 233 | } |
| 234 | catch (InvocationTargetException e) { |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 235 | // The component has thrown an exception during it's callback invocation. |
| 236 | if (e.getTargetException() instanceof ConfigurationException) { |
| 237 | // the callback threw an OSGi ConfigurationException: just re-throw it. |
| 238 | throw (ConfigurationException) e.getTargetException(); |
| 239 | } |
| 240 | else { |
| 241 | // wrap the callback exception into a ConfigurationException. |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 242 | throw new ConfigurationException(null, "Service " + ds + " with " + this.toString() + " could not be updated", e.getTargetException()); |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 243 | } |
| 244 | } |
Pierre De Rop | 1f06478 | 2010-05-24 20:02:37 +0000 | [diff] [blame] | 245 | catch (NoSuchMethodException e) { |
| 246 | // if the method does not exist, ignore it |
| 247 | } |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 248 | catch (Throwable t) { |
| 249 | // wrap any other exception as a ConfigurationException. |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 250 | throw new ConfigurationException(null, "Service " + ds + " with " + this.toString() + " could not be updated", t); |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 251 | } |
| 252 | } |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 253 | } |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 254 | |
| 255 | /** |
| 256 | * Sets the <code>service.pid</code> of the configuration you |
| 257 | * are depending on. |
| 258 | */ |
| 259 | public ConfigurationDependency setPid(String pid) { |
| 260 | ensureNotActive(); |
| 261 | m_pid = pid; |
| 262 | return this; |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Sets propagation of the configuration properties to the service |
| 267 | * properties. Any additional service properties specified directly |
| 268 | * are merged with these. |
| 269 | */ |
| 270 | public ConfigurationDependency setPropagate(boolean propagate) { |
| 271 | ensureNotActive(); |
| 272 | m_propagate = propagate; |
| 273 | return this; |
| 274 | } |
| 275 | |
| 276 | private void ensureNotActive() { |
Marcel Offermans | cae6136 | 2009-12-01 08:37:10 +0000 | [diff] [blame] | 277 | if (m_services != null && m_services.size() > 0) { |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 278 | throw new IllegalStateException("Cannot modify state while active."); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | public String toString() { |
| 283 | return "ConfigurationDependency[" + m_pid + "]"; |
| 284 | } |
| 285 | |
| 286 | public String getName() { |
| 287 | return m_pid; |
| 288 | } |
| 289 | |
| 290 | public int getState() { |
| 291 | return (isAvailable() ? 1 : 0) + (isRequired() ? 2 : 0); |
| 292 | } |
| 293 | |
| 294 | public String getType() { |
| 295 | return "configuration"; |
| 296 | } |
Marcel Offermans | 001db05 | 2009-12-08 08:58:40 +0000 | [diff] [blame] | 297 | |
| 298 | public Object getAutoConfigInstance() { |
| 299 | return getConfiguration(); |
| 300 | } |
| 301 | |
| 302 | public String getAutoConfigName() { |
| 303 | // TODO Auto-generated method stub |
| 304 | return null; |
| 305 | } |
| 306 | |
| 307 | public Class getAutoConfigType() { |
| 308 | return Dictionary.class; |
| 309 | } |
| 310 | |
| 311 | public void invokeAdded(DependencyService service) { |
| 312 | try { |
| 313 | invokeUpdate(service, service.getService(), getConfiguration()); |
| 314 | } |
| 315 | catch (ConfigurationException e) { |
| 316 | // if this happens, it's definitely an inconsistency, since we |
| 317 | // asked the instance the same question before (if this is a |
| 318 | // valid configuration) and then it was |
| 319 | e.printStackTrace(); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | public void invokeRemoved(DependencyService service) { |
| 324 | // TODO Auto-generated method stub |
| 325 | } |
| 326 | |
| 327 | public boolean isAutoConfig() { |
| 328 | // TODO Auto-generated method stub |
| 329 | return false; |
| 330 | } |
Marcel Offermans | 117aa2f | 2009-12-10 09:48:17 +0000 | [diff] [blame] | 331 | |
Marcel Offermans | 26081d3 | 2010-07-12 12:43:42 +0000 | [diff] [blame] | 332 | public ConfigurationDependency setPropagate(Object instance, String method) { |
| 333 | setPropagate(instance != null && method != null); |
| 334 | m_propagateCallbackInstance = instance; |
| 335 | m_propagateCallbackMethod = method; |
| 336 | return this; |
| 337 | } |
| 338 | |
Marcel Offermans | 117aa2f | 2009-12-10 09:48:17 +0000 | [diff] [blame] | 339 | public Dictionary getProperties() { |
Marcel Offermans | 26081d3 | 2010-07-12 12:43:42 +0000 | [diff] [blame] | 340 | Dictionary config = getConfiguration(); |
| 341 | if (config != null) { |
| 342 | if (m_propagateCallbackInstance != null && m_propagateCallbackMethod != null) { |
| 343 | try { |
| 344 | return (Dictionary) InvocationUtil.invokeCallbackMethod(m_propagateCallbackInstance, m_propagateCallbackMethod, new Class[][] {{ Dictionary.class }, {}}, new Object[][] {{ config }, {}}); |
| 345 | } |
| 346 | catch (InvocationTargetException e) { |
| 347 | m_logger.log(LogService.LOG_WARNING, "Exception while invoking callback method", e.getCause()); |
| 348 | } |
| 349 | catch (Exception e) { |
| 350 | m_logger.log(LogService.LOG_WARNING, "Exception while trying to invoke callback method", e); |
| 351 | } |
| 352 | throw new IllegalStateException("Could not invoke callback"); |
| 353 | } |
| 354 | else { |
| 355 | return config; |
| 356 | } |
| 357 | } |
| 358 | else { |
| 359 | throw new IllegalStateException("cannot find configuration"); |
| 360 | } |
Marcel Offermans | 117aa2f | 2009-12-10 09:48:17 +0000 | [diff] [blame] | 361 | } |
Pierre De Rop | a0204f5 | 2010-03-06 22:23:57 +0000 | [diff] [blame] | 362 | |
| 363 | public BundleContext getBundleContext() { |
| 364 | return m_context; |
| 365 | } |
| 366 | |
| 367 | public Logger getLogger() { |
| 368 | return m_logger; |
| 369 | } |
| 370 | |
| 371 | public ConfigurationDependency add(PropertyMetaData properties) |
| 372 | { |
| 373 | createMetaTypeImpl(); |
| 374 | m_metaType.add(properties); |
| 375 | return this; |
| 376 | } |
| 377 | |
| 378 | public ConfigurationDependency setDescription(String description) |
| 379 | { |
| 380 | createMetaTypeImpl(); |
| 381 | m_metaType.setDescription(description); |
| 382 | return this; |
| 383 | } |
| 384 | |
| 385 | public ConfigurationDependency setHeading(String heading) |
| 386 | { |
| 387 | createMetaTypeImpl(); |
| 388 | m_metaType.setName(heading); |
| 389 | return this; |
| 390 | } |
| 391 | |
| 392 | public ConfigurationDependency setLocalization(String path) |
| 393 | { |
| 394 | createMetaTypeImpl(); |
| 395 | m_metaType.setLocalization(path); |
| 396 | return this; |
| 397 | } |
| 398 | |
| 399 | private synchronized void createMetaTypeImpl() { |
| 400 | if (m_metaType == null) { |
Pierre De Rop | 51b3337 | 2010-04-25 22:24:24 +0000 | [diff] [blame] | 401 | m_metaType = new MetaTypeProviderImpl(getName(), getBundleContext(), getLogger(), this, null); |
Pierre De Rop | a0204f5 | 2010-03-06 22:23:57 +0000 | [diff] [blame] | 402 | } |
| 403 | } |
Marcel Offermans | a962bc9 | 2009-11-21 17:59:33 +0000 | [diff] [blame] | 404 | } |