this.scanner = scanner; this.resourceManager = new ResourceManager(cmdFS, confFS); this.propertyManager = new PropertyManager();
public void testGetProperty() { PropertyManager mgr = new PropertyManager(); mgr.setProperty(FOO, foo); Property<Foo> property = mgr.getProperty(FOO); assertEquals(foo, property.getValue()); }
public class GraphDataParser { private GraphDataStreamReader graphSR; private GraphDataParser(String xmlFile) throws FileNotFoundException, XMLStreamException { FileInputStream inStream = new FileInputStream(new File(xmlFile)); graphSR = new GraphDataStreamReader(inStream, new PropertyManager(1)); } }
public void testDisplayValue() { PropertyManager mgr = new PropertyManager(); mgr.setProperty(PropertyDescriptor.VFS_REFRESH_PERIOD, 4); Property<Integer> property = mgr.getProperty(PropertyDescriptor.VFS_REFRESH_PERIOD); assertEquals("4", property.getDisplayValue()); mgr.setProperty(SimpleAuthenticationPlugin.SIMPLE_PASSWORD, "the_password"); Property<String> secretProperty = mgr.getProperty(SimpleAuthenticationPlugin.SIMPLE_PASSWORD); assertEquals(PropertyDescriptor.SECRET_DISPLAY_VALUE, secretProperty.getDisplayValue()); assertEquals("the_password", secretProperty.getValue()); } }
//This has reads in a property file: PropertyManager propertyManager = new PropertyManager(/*prop file location*/); String url = propertyManager.getConfig(DevelopmentConfig.URL);
this.scanner = scanner; this.resourceManager = new ResourceManager(cmdFS, confFS); this.propertyManager = new PropertyManager();
this.scanner = scanner; this.resourceManager = new ResourceManager(cmdFS, confFS); this.propertyManager = new PropertyManager();
this.scanner = scanner; this.resourceManager = new ResourceManager(cmdFS, confFS); this.propertyManager = new PropertyManager();