package net.jini.core.discovery;
public Class LookupLocator {
LookupLocator(java.lang.String
url)
throws java.net.MalformedURLException;
LookupLocator(java.lang.String
host,int port);
}
public ServiceRegistrar
getRegistrar()
throws java.io.IOException,
java.lang.ClassNotFoundException
public ServiceRegistration
register(ServiceItem item,
long leaseDuration)
throws java.rmi.RemoteException
package net.jini.core.lookup;
public Class ServiceItem
{
public
ServiceID serviceID;
public
java.lang.Object service;
public
Entry[] attributeSets;
public
ServiceItem(ServiceID serviceID,
java.lang.Object service,
Entry[] attrSets);
}
Beispielcode für Service Registration: SimpleService.txt
public java.lang.Object
lookup(ServiceTemplate tmpl)
throws java.rmi.RemoteException;
package net.jini.core.lookup;
public Class ServiceTemplate
{
public
ServiceID serviceID;
public
java.lang.Class[] serviceTypes;
public
Entry[] attributeSetTemplates;
ServiceTemplate(ServiceID
serviceID,
java.lang.Class[] serviceTypes,
Entry[] attrSetTemplates);
}
Bei dem serviceTypes die gesucht werden, handelt es sich sinnvollerweise entweder