public interface ILiberate
It is a approximation to work with object that have
to trap and release resources (connections to remote object,
databases, etc). The resources are obtained on demmand
(lazy initialization) and when you wish to release
you can call to
RemoteException is used to allow implement by a remote object, although this is not mandatory.
void liberate() throws java.rmi.RemoteException
It is important to call this method when you do not need any more this object,
although can be called in any momment of object life cycle.
After you call this method the object continues being usable.
java.rmi.RemoteException- Any problem releasing resources