public Dictionary getServiceProperties() { return m_delegate.getServiceProperties(); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); } }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("unchecked") void init(Component c) { Dictionary<Object, Object> props = c.getServiceProperties(); containerName = (props != null) ? (String) props.get("containerName") : null; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); } }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("unchecked") void init(Component c) { Dictionary<Object, Object> props = c.getServiceProperties(); containerName = (props != null) ? (String) props.get("containerName") : null; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("unchecked") void init(Component c) { logger.trace("INIT called!"); Dictionary<Object, Object> props = c.getServiceProperties(); containerName = (props != null) ? (String) props.get("containerName") : null; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("unchecked") void init(Component c) { logger.trace("INIT called!"); Dictionary<Object, Object> props = c.getServiceProperties(); containerName = (props != null) ? (String) props.get("containerName") : null; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); logger.debug("Running containerName: {}", this.containerName); } else { // In the Global instance case the containerName is empty this.containerName = ""; } }
private void updateContextPath(String pattern) { Dictionary<Object, Object> serviceProperties = m_component.getServiceProperties(); String currentPath = (String) serviceProperties.get(HTTP_WHITEBOARD_CONTEXT_PATH); if (!pattern.equals(currentPath)) { serviceProperties.put(HTTP_WHITEBOARD_CONTEXT_PATH, pattern); m_component.setServiceProperties(serviceProperties); } } }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); lbsLogger.trace("Running container name:" + this.containerName); } else { // In the Global instance case the containerName is empty this.containerName = ""; } lbsLogger.trace(configManager.toString()); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); logger.debug("Running containerName: {}", this.containerName); } else { // In the Global instance case the containerName is empty this.containerName = ""; } startUp(); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { containerName = (String) props.get("containerName"); logger.debug("Running containerName: {}", containerName); } else { // In the Global instance case the containerName is empty containerName = ""; } startUp(); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { containerName = (String) props.get("containerName"); logger.debug("Running containerName: {}", containerName); } else { // In the Global instance case the containerName is empty containerName = ""; } startUp(); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("rawtypes") void init(Component c) { logger.trace("INIT called!"); Dictionary props = c.getServiceProperties(); if (props != null) { containerName = (String) props.get("containerName"); isDefaultContainer = containerName.equals(GlobalConstants.DEFAULT .toString()); } nodeProps = new ConcurrentHashMap<Node, Map<String, Property>>(); nodeConnectorProps = new ConcurrentHashMap<NodeConnector, Map<String, Property>>(); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); log.trace("Running containerName: {}", this.containerName); } else { // In the Global instance case the containerName is empty this.containerName = ""; } isDefaultContainer = containerName.equals(GlobalConstants.DEFAULT .toString()); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { this.containerName = (String) props.get("containerName"); logger.debug("Running containerName: {}", this.containerName); } else { // In the Global instance case the containerName is empty this.containerName = ""; } startUp(); logger.debug("key Scheme in hosttracker is {}", keyScheme); }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ @SuppressWarnings("rawtypes") void init(Component c) { logger.trace("INIT called!"); Dictionary props = c.getServiceProperties(); if (props != null) { containerName = (String) props.get("containerName"); if (containerName != null) { isDefaultContainer = containerName.equals(GlobalConstants.DEFAULT .toString()); } } nodeProps = new ConcurrentHashMap<Node, Map<String, Property>>(); nodeConnectorProps = new ConcurrentHashMap<NodeConnector, Map<String, Property>>(); }
void init(Component c) { Dictionary<?, ?> props = c.getServiceProperties(); containerName = (props != null) ? (String) props.get("containerName") : GlobalConstants.DEFAULT.toString(); root = String.format("%s%s/", GlobalConstants.STARTUPHOME.toString(), containerName); }
/** * Checks if a given filter is matching some service properties possibly provided by a component */ private boolean servicesMatches(Component component, Filter servicesFilter) { boolean match = false; if (servicesFilter != null) { String[] services = ((ComponentDeclaration) component).getServices(); if (services != null) { Dictionary<String, Object> properties = component.getServiceProperties(); if (properties == null) { properties = new Hashtable<String, Object>(); } if (properties.get(Constants.OBJECTCLASS) == null) { properties.put(Constants.OBJECTCLASS, services); } match = servicesFilter.match(properties); } } return match; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init(Component c) { allocateCaches(); retrieveCaches(); String containerName = null; Dictionary<?, ?> props = c.getServiceProperties(); if (props != null) { containerName = (String) props.get("containerName"); } else { // In the Global instance case the containerName is empty containerName = "UNKNOWN"; } registerWithOSGIConsole(); loadConfiguration(); // Restore the shuttingDown status on init of the component shuttingDown = false; notifyThread = new Thread(new TopologyNotify(notifyQ)); pendingTimer = new Timer("Topology Pending Update Timer"); updateThread = new Thread(new UpdateTopology(), "Topology Update"); }