com.kedwards.swt.admin
Class BasicAdminProxy
java.lang.Object
|
+--com.kedwards.swt.admin.BasicAdminProxy
- All Implemented Interfaces:
- BasicAdmin, java.rmi.Remote, java.io.Serializable
- public class BasicAdminProxy
- extends java.lang.Object
- implements BasicAdmin, java.io.Serializable
BasicAdminProxy.java
By default, the SWT will simply return the RMI stub for
BasicAdminImpl as the administration object for a service.
Some services, however, may need to implement "smarter" admin
behavior.
This code provides a simple proxy wrapper that forwards admin
calls on to a backend. This provides service writers who need
additional admin behavior with a thing to subclass. In effect,
it's a "smart" admin proxy that wraps the simple stub.
Override getAdmin to return this, should you need it.
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational
purposes only.
- Author:
- Keith Edwards
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAdminProxy
public BasicAdminProxy(BasicAdmin remote)
destroy
public void destroy()
throws java.rmi.RemoteException
setStorageLocation
public void setStorageLocation(java.lang.String loc)
throws java.rmi.RemoteException,
java.io.IOException
getStorageLocation
public java.lang.String getStorageLocation()
throws java.rmi.RemoteException
getLookupAttributes
public net.jini.core.entry.Entry[] getLookupAttributes()
throws java.rmi.RemoteException
addLookupAttributes
public void addLookupAttributes(net.jini.core.entry.Entry[] attrs)
throws java.rmi.RemoteException
modifyLookupAttributes
public void modifyLookupAttributes(net.jini.core.entry.Entry[] tmpls,
net.jini.core.entry.Entry[] attrs)
throws java.rmi.RemoteException
getLookupGroups
public java.lang.String[] getLookupGroups()
throws java.rmi.RemoteException
addLookupGroups
public void addLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
removeLookupGroups
public void removeLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
setLookupGroups
public void setLookupGroups(java.lang.String[] groups)
throws java.rmi.RemoteException
getLookupLocators
public net.jini.core.discovery.LookupLocator[] getLookupLocators()
throws java.rmi.RemoteException
addLookupLocators
public void addLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
throws java.rmi.RemoteException
removeLookupLocators
public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
throws java.rmi.RemoteException
setLookupLocators
public void setLookupLocators(net.jini.core.discovery.LookupLocator[] locs)
throws java.rmi.RemoteException