Hi all,
please view the example from my
SCJD assignment. It shows a part from my modeled data and network layer:
We were given the DB interface in the assignment and are not allowed to touch it. For the data layer model I simply used the Adapter
Pattern.
To provide network functionality I've chosen to use the Proxy Pattern for the network layer model.
Actually the application runs fine and I am days away to submit the assignment back to Sun.
But now I've some doubts whether my network layer is still conform to the Proxy Pattern.
In terms of Proxy Pattern I distinguish between:
RemoteDB - as the Subject interfaceRemoteData - as the Proxy objectData - as the RealSubject objectDB - also as the Subject interface I liked not to have the RemoteDB interface but simply use DB as
Subject interface. But due to my constraint from Sun not to touch DB I had to create an identical new interface
RemoteDB with same signature like DB but with
RemoteException added to all methods.
Now I have
two Subject interfaces and doubt whether I can still call it Proxy Pattern.
Any feedback from you is welcome
.
Regards,
Darya