示例#1
0
 public PropertySheet(
     Configurable configurable,
     String name,
     RawPropertyData rpd,
     ConfigurationManager ConfigurationManager) {
   this(configurable.getClass(), name, ConfigurationManager, rpd);
   owner = configurable;
 }
 @Override
 public void componentAdded(Configurable component) {
   super.componentAdded(component);
   if (log.isLoggable(Level.CONFIG)) {
     log.config(" component: " + component.getName());
   }
   ServiceEntity item = config_list.findNode(component.getName());
   if (item == null) {
     item = new ServiceEntity(getName(), component.getName(), "Component: " + component.getName());
     item.addFeatures(CMD_FEATURES);
     item.addIdentities(
         new ServiceIdentity[] {
           new ServiceIdentity("automation", "command-node", "Component: " + component.getName())
         });
     config_list.addItems(new ServiceEntity[] {item});
   }
   if (config_set.findNode(component.getName()) == null) {
     config_set.addItems(new ServiceEntity[] {item});
   }
   if (component.getClass().getName().equals(ROUTER_COMP_CLASS_NAME)) {
     routerCompName = component.getName();
   } // end of if (component.getClass().getName().equals())
 }