ExtendedProperties subEprop = eprop.subset("prop");
/** * Constructor for ConnectionProperties. */ public ConnectionProperties(ExtendedProperties props) { Iterator names = extractNames(props).iterator(); while (names.hasNext()) { String name = (String) names.next(); DataSourceInfo dsi = buildDataSourceInfo(props.subset(name)); connectionInfos.put(name, dsi); } }
/** * Constructor for ConnectionProperties. */ public ConnectionProperties(ExtendedProperties props) { Iterator names = extractNames(props).iterator(); while (names.hasNext()) { String name = (String) names.next(); DataSourceInfo dsi = buildDataSourceInfo(props.subset(name)); connectionInfos.put(name, dsi); } }
/** * @inheritDoc */ @SuppressWarnings( "unchecked" ) @Override public void execute() throws IOException, JMException { Session session = getSession(); // output predefined about properties ExtendedProperties props = ExtendedPropertiesUtils.loadFromOverlappingResources( "META-INF/cyclopsgroup/jmxterm.properties", getClass().getClassLoader() ); ValueOutputFormat format = new ValueOutputFormat( 2, showDescription, true ); for ( Object entryObject : props.subset( "jmxterm.about" ).entrySet() ) { Map.Entry<String, Object> entry = (Map.Entry<String, Object>) entryObject; format.printExpression( session.output, entry.getKey(), entry.getValue(), null ); } // output Java runtime properties for ( Map.Entry<Object, Object> entry : System.getProperties().entrySet() ) { String keyName = entry.toString(); if ( keyName.startsWith( "java." ) ) { format.printExpression( session.output, keyName, entry.getValue(), null ); } } }
+ ", classpath has problem" ); props = props.subset( "jmxterm.commands" ); if ( props == null )
rsvc.getConfiguration().subset(loaderID.toString());
rsvc.getConfiguration().subset(loaderID.toString());
rsvc.getConfiguration().subset(loaderID.toString());
rsvc.getConfiguration().subset(loaderID);
ExtendedProperties subset = c.subset("file.resource.loader"); showIterator(result, subset.getKeys());