private DescriptorListBuilder finish(){ myListBuilder.getDescriptors().add(getDescriptor()); return myListBuilder; } }
private DependencyDescriptor buildFactoryDescriptor(Class<T> serviceClass, Class<C> configClass, VersionProperty serviceVersion){ DescriptorBuilder descs = new DescriptorBuilder(theServiceFactory, ServiceFactory.class) .with(Constants.SERVICE_CLASS, serviceClass.getName()) .with(Constants.SERVICE_VERSION, serviceVersion.toString()); if(configClass != null){ descs.with(Constants.CONFIG_CLASS, configClass.getName()); } return descs.getDescriptor(); }
private DependencyDescriptor buildLoaderDescriptor(Class<C> configClass, Class<P> paramClass, VersionProperty configFormat){ DescriptorBuilder descs = new DescriptorBuilder( theConfigLoader, ConfigurationLoader.class) .with(Constants.CONFIG_FORMAT_VERSION, configFormat.toString()); if(configClass != null){ descs.with(Constants.CONFIG_CLASS, configClass.getName()); }if(paramClass != null){ descs.with(Constants.CONFIG_PARAM_CLASS, paramClass.getName()); } return descs.getDescriptor(); }
public RobotJointGroupLifecycle(Robot.Id robotId, Class<P> paramClass, String paramId, VersionProperty configFormat){ super(new ConfiguredServiceParams( JointGroup.class, RobotJointGroupConfig.class, paramClass, null, null, paramId, RobotJointGroup.VERSION, configFormat)); getDependencyDescriptors().add( new DescriptorBuilder(theRobot, Robot.class) .with(Robot.PROP_ID, robotId.getRobtIdString()) .getDescriptor()); if(myRegistrationProperties == null){ myRegistrationProperties = new Properties(); } myRegistrationProperties.put(Robot.PROP_ID, robotId.getRobtIdString()); }
private DependencyDescriptor buildParamDescriptor( Class<P> paramClass, VersionProperty configFormat, String paramId){ DescriptorBuilder descs = new DescriptorBuilder(theLoaderParam, paramClass) .with(Constants.CONFIG_FORMAT_VERSION, configFormat.toString()); if(paramId != null){ descs.with(Constants.CONFIG_PARAM_ID, paramId); } return descs.getDescriptor(); }