Controlling access to software component state
AssigneeMicrosoft Corporation
InventorsChristopher D. Russell, Eric P. Traut, Ravisankar Pudipeddi, Adam D. Stritzel, Suyash Sinha
Life of this patent
Estimating the term…
Abstract
A request is received from a software component of a software product to access a value of a public setting of the software component. A check is made as to whether the request conforms to an appropriate format for the public setting. If the request conforms to the appropriate format, then the requested access is performed. However, if the request does not conform to the appropriate format, then the requested access is denied. Multiple values for the public setting can be received and maintained concurrently.
Claims20
One or more computer storage media having stored thereon multiple instructions that, when executed by one or more processors of a device, cause the one or more processors to:
- receive a request from a software component of a software product to access a value of a public setting of the software component;
- check whether the request conforms to an appropriate format for the public setting;
- and
- perform the requested access if the request conforms to the appropriate format, and otherwise deny the requested access.
A method implemented by one or more processors of a device, the method comprising:
- receiving a setting declaration for a software component, the setting declaration identifying an appropriate format for accessing a declared setting;
- receiving, for the declared setting, multiple values;
- and
- concurrently maintaining the multiple values.
A method implemented by one or more processors of a device, the method comprising:
- receiving a setting declaration for a software component of a software product, the setting declaration identifying an appropriate format for accessing a declared setting and also including a default value for the declared setting, the setting declaration being received as part of a manifest storing metadata describing the software component;
- receiving a request from the software component to write an additional value for the declared setting;
- checking whether the request to write the additional value conforms to an appropriate format for the declared setting, the checking comprising checking both whether a name identified in the request and a name of the declared setting are the same, and whether a setting type for the additional value in the request and a setting type of the declared setting are the same;
- and
- if the request conforms to the appropriate format for the declared setting, then performing the request by storing the additional value while maintaining the default value, and denying the request if the request does not conform to the appropriate format for the declared setting.
Dependencies are inferred from the claim text.