com.sun.jini.compat.harness
Class DefaultServiceAdmin
java.lang.Object
com.sun.jini.compat.harness.DefaultAdmin
com.sun.jini.compat.harness.DefaultServiceAdmin
- All Implemented Interfaces:
- BasicAdmin, BasicServiceAdmin
- public class DefaultServiceAdmin
- extends DefaultAdmin
- implements BasicServiceAdmin
This is a non-automated generic implementation of the
BasicServiceAdmin. It extends DefaultAdmin for all it's
BasicAdmin implementation.
Constructor Summary |
DefaultServiceAdmin()
Basic no-arg constructor. |
DefaultServiceAdmin(java.lang.String message)
A constructor that takes a message to
be displayed with the various user input requests. |
Method Summary |
ServiceTemplate |
getTemplate()
Return a blank ServiceTemplate . |
ServiceItem |
pickService(ServiceItem[] services)
Given an array of service proxy objects, this method
asks the user to select the appropriate service from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServiceAdmin
public DefaultServiceAdmin()
- Basic no-arg constructor.
DefaultServiceAdmin
public DefaultServiceAdmin(java.lang.String message)
- A constructor that takes a message to
be displayed with the various user input requests.
- Parameters:
message
- a message to be displayed with the user input
requests
pickService
public ServiceItem pickService(ServiceItem[] services)
throws java.rmi.RemoteException
- Given an array of service proxy objects, this method
asks the user to select the appropriate service from the list.
If the service is not one of the listed services it returns null.
- Specified by:
pickService
in interface BasicServiceAdmin
- Parameters:
services
- the array ServiceItem
objects
from which to choose
- Returns:
- the
ServiceItem
for the service being tested,
or null
- Throws:
java.rmi.RemoteException
getTemplate
public ServiceTemplate getTemplate()
throws java.rmi.RemoteException
- Return a blank
ServiceTemplate
.
- Specified by:
getTemplate
in interface BasicServiceAdmin
- Returns:
- the template
- Throws:
java.rmi.RemoteException
Copyright 2005, Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0.