com.sun.jini.compat.harness
Class DefaultServiceAdmin

java.lang.Object
  extended bycom.sun.jini.compat.harness.DefaultAdmin
      extended bycom.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.


Field Summary
 
Fields inherited from interface com.sun.jini.compat.harness.BasicServiceAdmin
CATEGORY
 
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 com.sun.jini.compat.harness.DefaultAdmin
getAddress, getConfig, setConfig, start, stop, waitForChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jini.compat.harness.BasicAdmin
getAddress, setConfig, start, stop
 

Constructor Detail

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
Method Detail

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.