Package jade
Class BootProfileImpl
- java.lang.Object
-
- jade.core.Profile
-
- jade.core.ProfileImpl
-
- jade.BootProfileImpl
-
public class BootProfileImpl extends ProfileImpl
A profile implementation enhanced to support boot's argument parsing. This class serves as the bridge between boot properties and profile properties. It defines a collection of property keys which correspond to boot argument names. These are used to access the boot properties from the argument properties. The class Profile defines a similar collection of keys which are used to access profile properties.- Version:
- $Date$ $Revision$
- Author:
- Dick Cowan - HP Labs
-
-
Field Summary
Fields Modifier and Type Field Description static StringACLCODEC_KEYstatic StringCONF_KEYstatic StringCONTAINER_KEYstatic StringDUMP_KEYstatic StringGUI_KEYstatic StringHELP_KEYstatic StringLOGIN_KEYstatic StringMTP_KEYstatic StringNAME_KEYstatic StringNOMOBILITY_KEYstatic StringNOMTP_KEYstatic StringSMHOST_KEYstatic StringSMPORT_KEYstatic StringVERSION_KEY-
Fields inherited from class jade.core.ProfileImpl
bootProps
-
Fields inherited from class jade.core.Profile
ACCEPT_FOREIGN_AGENTS, ACLCODECS, AGENT_TAG, AGENTS, ANDROID, CONTAINER_NAME, DEFAULT_PORT, DEFAULT_SERVICES, DEFAULT_SERVICES_NOMOBILITY, DETECT_MAIN, DUMP_OPTIONS, EXPORT_HOST, EXPORT_PORT, FILE_DIR, GUI, IMTP, IP_VERSION, IPV4, IPV6, J2SE, JVM, LEAP_IMTP, LOCAL_HOST, LOCAL_PORT, LOCAL_PORT_RANGE, LOCAL_SERVICE_MANAGER, LOCALHOST_CONSTANT, LOOPBACK_ADDRESS_CONSTANT, MAIN, MAIN_HOST, MAIN_PORT, MAIN_PROTO, MIDP, MTPS, NO_DISPLAY, NO_MTP, OWNER, PJAVA, PLATFORM_ID, PRIVILEDGE_LOGICAL_NAME, REMOTE_SERVICE_MANAGER_ADDRESSES, RMI_IMTP, SERVICES, STYLE_3_X, USERAUTH_KEY
-
-
Constructor Summary
Constructors Constructor Description BootProfileImpl()Construct default profile with empty argument propertiesBootProfileImpl(String[] args)Construct profile with specified arguments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanfetchAndVerifyBoolean(String aKey)Fetch and verify a boolean attribute.ExtendedPropertiesgetArgProperties()Return the properties collection which resulted from the arguments.ListparseSpecifiers(String str)Parse a String reading for a set ofparameter(arg)each delimited by a;and no space in between.voidsetArgProperties(ExtendedProperties source)Copy a collection of argument properties into the existing argument properties and then into the profile properties.-
Methods inherited from class jade.core.ProfileImpl
getBooleanProperty, getBootProperties, getCommandProcessor, getIMTPManager, getMain, getParameter, getPlatformManager, getProperties, getResourceManager, getServiceFinder, getServiceManager, getSpecifiers, setParameter, setSpecifiers, toString
-
Methods inherited from class jade.core.Profile
compareHostNames, compareTransportAddresses, compareTransportAddresses, getDefaultNetworkName, getDefaultNetworkName, isBackupMain, isLocalHost, isMain, isMasterMain
-
-
-
-
Field Detail
-
ACLCODEC_KEY
public static final String ACLCODEC_KEY
- See Also:
- Constant Field Values
-
CONF_KEY
public static final String CONF_KEY
- See Also:
- Constant Field Values
-
CONTAINER_KEY
public static final String CONTAINER_KEY
- See Also:
- Constant Field Values
-
DUMP_KEY
public static final String DUMP_KEY
- See Also:
- Constant Field Values
-
GUI_KEY
public static final String GUI_KEY
- See Also:
- Constant Field Values
-
HELP_KEY
public static final String HELP_KEY
- See Also:
- Constant Field Values
-
MTP_KEY
public static final String MTP_KEY
- See Also:
- Constant Field Values
-
NOMTP_KEY
public static final String NOMTP_KEY
- See Also:
- Constant Field Values
-
NAME_KEY
public static final String NAME_KEY
- See Also:
- Constant Field Values
-
LOGIN_KEY
public static final String LOGIN_KEY
- See Also:
- Constant Field Values
-
SMHOST_KEY
public static final String SMHOST_KEY
- See Also:
- Constant Field Values
-
SMPORT_KEY
public static final String SMPORT_KEY
- See Also:
- Constant Field Values
-
VERSION_KEY
public static final String VERSION_KEY
- See Also:
- Constant Field Values
-
NOMOBILITY_KEY
public static final String NOMOBILITY_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BootProfileImpl
public BootProfileImpl()
Construct default profile with empty argument properties
-
BootProfileImpl
public BootProfileImpl(String[] args) throws PropertiesException
Construct profile with specified arguments- Parameters:
args- Boot arguments- Throws:
PropertiesException
-
-
Method Detail
-
getArgProperties
public ExtendedProperties getArgProperties()
Return the properties collection which resulted from the arguments. This collection is used to create/modify the underlying profile's properties.- Returns:
- ExtendedProperties The argument property collection.
-
setArgProperties
public void setArgProperties(ExtendedProperties source)
Copy a collection of argument properties into the existing argument properties and then into the profile properties. When moving between the argument properties and profile properties different keys are required.- Parameters:
source- A collection of argument properties. The keys to this collection are from the XXX_KEY strings defined in this class.
-
fetchAndVerifyBoolean
protected boolean fetchAndVerifyBoolean(String aKey) throws PropertiesException
Fetch and verify a boolean attribute.- Parameters:
aKey- The property key to check.- Returns:
- True or false depending on the attributes setting. False if attribute doesn't exist.
- Throws:
PropertiesException- if there is a value but its not either "true" or "false".
-
parseSpecifiers
public List parseSpecifiers(String str) throws PropertiesException
Parse a String reading for a set ofparameter(arg)each delimited by a;and no space in between.For instance
jade.mtp.iiop(50);http.mtp.http(8080)is a valid string, whilejade.mtp.iiop(50 80);http.mtp.http(8080)is not valid For each object specifier, a new java objectSpecifieris added to the passedoutList parameter.- Throws:
PropertiesException
-
-