Class DataCollectorBase
java.lang.Object
com.sun.corba.ee.impl.orb.DataCollectorBase
- All Implemented Interfaces:
DataCollector
- Direct Known Subclasses:
AppletDataCollector, NormalDataCollector, PropertyOnlyDataCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprivate Propertiesprivate Propertiesprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionDataCollectorBase(Properties props, String localHostName, String configurationHostName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void///////////////////////////////////////////////////////private voidprotected abstract voidcollect()///////////////////////////////////////////////////////private voiddoProperties(Properties props) private StringfindMatchingPropertyName(Set<String> names, String suffix) private voidfindPropertiesByName(Iterator<String> names, PropertyCallback getProperty) private voidfindPropertiesByPrefix(Set<String> prefixes, Iterator<String> propertyNames, PropertyCallback getProperty) protected voidprotected voidfindPropertiesFromArgs(String[] params) protected voidprotected voidprotected voidgetCORBAPrefixes(Set<String> prefixes) private PropertiesReturn the consolidated property information to be used for ORB configuration.private voidgetPropertiesFromFile(Properties props, String fileName) private static StringgetSystemProperty(String name) private booleanhasCORBAPrefix(String prefix) boolean///////////////////////////////////////////////////////abstract booleanisApplet()///////////////////////////////////////////////////////makeIterator(Enumeration<?> enumeration) voidsetParser(PropertyParser parser) Set the parser which is used to obtain property names.private voidsetProperty(String name, String value) ///////////////////////////////////////////////////////
-
Field Details
-
propertyNames
-
propertyPrefixes
-
URLPropertyNames
-
localHostName
-
configurationHostName
-
setParserCalled
private boolean setParserCalled -
originalProps
-
resultProps
-
-
Constructor Details
-
DataCollectorBase
-
-
Method Details
-
initialHostIsLocal
public boolean initialHostIsLocal()///////////////////////////////////////////////////////- Specified by:
initialHostIsLocalin interfaceDataCollector- Returns:
- if the local host and ORB initial host are the same
-
setParser
Description copied from interface:DataCollectorSet the parser which is used to obtain property names. This must be called before getProperties may be called. It may be called multiple times if different sets of properties are needed for the same data sources.- Specified by:
setParserin interfaceDataCollector- Parameters:
parser- parser used to obtain property names
-
getProperties
Description copied from interface:DataCollectorReturn the consolidated property information to be used for ORB configuration. Note that -ORBInitRef arguments are handled specially: all -ORBInitRef name=value arguments are converted into ( org.omg.CORBA.ORBInitRef.name, value ) mappings in the resulting properties. Also, -ORBInitialServices is handled specially in applet mode: they are converted from relative to absolute URLs.- Specified by:
getPropertiesin interfaceDataCollector- Returns:
- consolidated property information
-
isApplet
public abstract boolean isApplet()///////////////////////////////////////////////////////- Specified by:
isAppletin interfaceDataCollector- Returns:
- if this was created from an applet
-
collect
protected abstract void collect()/////////////////////////////////////////////////////// -
checkPropertyDefaults
protected void checkPropertyDefaults()/////////////////////////////////////////////////////// -
findPropertiesFromArgs
-
findPropertiesFromApplet
-
doProperties
-
findPropertiesFromFile
protected void findPropertiesFromFile() -
findPropertiesFromProperties
protected void findPropertiesFromProperties() -
findPropertiesFromSystem
protected void findPropertiesFromSystem() -
setProperty
-
checkSetParserCalled
private void checkSetParserCalled() -
findPropertiesByPrefix
private void findPropertiesByPrefix(Set<String> prefixes, Iterator<String> propertyNames, PropertyCallback getProperty) -
findPropertiesByName
-
getSystemProperty
-
findMatchingPropertyName
-
makeIterator
-
getSystemPropertyNames
-
getPropertiesFromFile
-
getFileProperties
-
hasCORBAPrefix
-
getCORBAPrefixes
-