Method and system for detecting deprecated elements during runtime
AssigneeSun Microsystems, Inc.
InventorsShivakumar Govindarajapuram, Rajesh Kanungo
Life of this patent
Estimating the term…
Abstract
A method for controlling access to deprecated methods of an implementation is provided. The method includes receiving a request to access a method that has been marked as deprecated and building a call stack for the request. Also included is inspecting the call stack to determine if the request is from an application outside of the implementation. The method further includes acting on the request in accordance with a control policy defined by a pluggable policy.
Claims20
A method for controlling access to deprecated methods of an implementation, comprising:
- receiving a request to access a method that has been marked as deprecated;
- building a call stack for the request;
- inspecting the call stack to determine if the request is from an application outside of the implementation;
- and
- denying access to the method if the request is determined to be from the application outside of the implementation upon the inspection.
A method for controlling access to deprecated methods of an implementation, comprising:
- receiving a request to access a method that has been marked as deprecated;
- building a call stack for the request;
- inspecting the call stack to determine if the request is from an application outside of the implementation;
- and
- acting on the request in accordance with a control policy defined by a pluggable policy.
A method for allowing access to a deprecated element of a software implementation, the method comprising:
- invoking a deprecated element of the software implementation by a caller element;
- invoking an access controller, the access controller including a pluggable access control policy;
- and
- determining the accessibility of the deprecated element by the caller element using the pluggable access control policy, the determining including,
- granting access to the caller element if the caller element satisfies a criteria of the access control policy;
- and
- denying access to the caller element if the caller element fails to satisfy the criteria of the access control policy.
A method for determining the accessibility of a caller element to a deprecated method of a software implementation, the method comprising:
- invoking an access controller, the access controller including a pluggable access control policy configured to deny access to a caller element having a domain different than the domain of the software implementation;
- and
- limiting access to the deprecated method using the access control policy.
A system for limiting access to a deprecated method of a software implementation, the system comprising:
- an access controller code configured to include an access control policy, the access control policy configured to be used to determine an accessibility of a caller element to the deprecated method;
- and
- a call stack defining at least the caller element and the deprecated method, the call stack capable of being inspected to determine accessibility to the caller element.
Dependencies are inferred from the claim text.