Code example for Dictionary

Methods: getput

0
    config.setBundleLocation(null);
    Dictionary listenerProps = config.getProperties();
    if (listenerProps == null) {
      listenerProps = new Hashtable();
    } 
    oldMessageListenerTarget = listenerProps.get(MESSAGE_LISTENER_TARGET);
    listenerProps.put(MESSAGE_LISTENER_TARGET, "(service.pid="
        + JdbcMessageListener.class.getName() + ")");
    config.update(listenerProps);
  } 
 
  @SuppressWarnings({ "rawtypes", "unchecked" }) 
  @Deactivate 
  protected void deactivate(Map<?, ?> props) throws IOException {
    Configuration config = configAdmin.getConfiguration(ROUTE_BUILDER_PID, null);
    Dictionary listenerProps = config.getProperties();
    if (listenerProps != null) {
      listenerProps.put(MESSAGE_LISTENER_TARGET, oldMessageListenerTarget);
    } 
    config.update(listenerProps);
Stop searching for code, let great code find you!  Add Codota to your java IDE