/** * Creates the description object for the configuration handler description. * @param handler the configuration handler. * @param props the list of properties. * @param pid the managed service pid or <code>null</code> if not set. */ public ConfigurationHandlerDescription(ConfigurationHandler handler, List/*<Property>*/ props, String pid) { super(handler); m_conf = handler; m_properties = new PropertyDescription[props.size()]; for (int i = 0; i < props.size(); i++) { m_properties[i] = new PropertyDescription((Property) props.get(i)); } m_pid = pid; }
/** * Creates the description object for the configuration handler description. * @param handler the configuration handler. * @param props the list of properties. * @param pid the managed service pid or <code>null</code> if not set. */ public ConfigurationHandlerDescription(ConfigurationHandler handler, List/*<Property>*/ props, String pid) { super(handler); m_conf = handler; m_properties = new PropertyDescription[props.size()]; for (int i = 0; i < props.size(); i++) { m_properties[i] = new PropertyDescription((Property) props.get(i)); } m_pid = pid; }
/** * Adds a String property in the component type. * * @param name : property name. * @param value : property value. * @param immutable : the property is immutable. */ public void addProperty(String name, String value, boolean immutable) { addProperty(new PropertyDescription(name, String.class.getName(), value, immutable)); }
/** * Adds a String property in the component type. * * @param name : property name. * @param value : property value. * @param immutable : the property is immutable. */ public void addProperty(String name, String value, boolean immutable) { addProperty(new PropertyDescription(name, String.class.getName(), value, immutable)); }
PropertyDescription pd = new PropertyDescription(TOPICS_PROPERTY, Dictionary.class.getName(), dict.toString()); cd.addProperty(pd);
PropertyDescription pd = new PropertyDescription(TOPICS_PROPERTY, Dictionary.class.getName(), dict.toString()); cd.addProperty(pd);
cd.addProperty(new PropertyDescription(TOPICS_PROPERTY, Dictionary.class.getName(), dict.toString())); dict = new Properties(); cd.addProperty(new PropertyDescription(FILTER_PROPERTY, Dictionary.class.getName(), dict.toString()));
cd.addProperty(new PropertyDescription(TOPICS_PROPERTY, Dictionary.class.getName(), dict.toString())); dict = new Properties(); cd.addProperty(new PropertyDescription(FILTER_PROPERTY, Dictionary.class.getName(), dict.toString()));
PropertyDescription pd = new PropertyDescription(name, type, value, immutable); desc.addProperty(pd);
PropertyDescription pd = new PropertyDescription(name, type, value, immutable); desc.addProperty(pd);
pd = new PropertyDescription(name, type, null, false); // Cannot be immutable if we have no value. } else { pd = new PropertyDescription(name, type, value, immutable);
pd = new PropertyDescription(name, type, null, false); // Cannot be immutable if we have no value. } else { pd = new PropertyDescription(name, type, value, immutable);