Directory Contents
-
CachingAccountObjectWrapper.java
This is the implementation of the caching object wrapper for the
Account object. In this class, the code checks to see if a balance
has been obtained from a previous request and cached. If not, it then
proceeds to make the request normally by calling
super.balance(), which causes the base class to propagate the
call down the chain, finally reaching the stub or the implementation
which then does the remote invocation or compute and return the
balance(on the server).
-
CachingAccountManagerObjectWrapper.java
This is an implementation of the AccountManager which caches all
accounts opened so far in a dictionary. Any request for an account is
first looked up in the dictionary and if an account with the given
name already exists, returns that, otherwise, it proceeds with the
actual call.
-
SecureAccountManagerObjectWrapper.java
This is an implementation of the AccountManager which checks its
arguments to ensure that an invalid name has not been used(in this
case "Unauthorized Account") and throws a NO_PERMISSION exception.
-
Init
This class implements a service initializer which installs the typed Object wrappers based on properties passed through the command line.
Return to the Object Wrapper page.