com.sun.jini.reggie
Class ServiceTypeBase

java.lang.Object
  extended by com.sun.jini.reggie.ServiceTypeBase
All Implemented Interfaces:
Serializable

 class ServiceTypeBase
extends Object
implements Serializable

A ServiceType annotated with a codebase.

Author:
Sun Microsystems, Inc.

Field Summary
 String codebase
          The codebase.
private static long serialVersionUID
           
 ServiceType type
          The ServiceType.
 
Constructor Summary
ServiceTypeBase(ServiceType type, String codebase)
          Simple constructor
 
Method Summary
 void setCodebase(Class cls)
          Sets the codebase to the codebase of the given class.
static Class[] toClass(ServiceTypeBase[] stypes)
          Converts an array of ServiceTypeBase to an array of Class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

type

public final ServiceType type
The ServiceType.


codebase

public String codebase
The codebase.

Constructor Detail

ServiceTypeBase

public ServiceTypeBase(ServiceType type,
                       String codebase)
Simple constructor

Method Detail

setCodebase

public void setCodebase(Class cls)
Sets the codebase to the codebase of the given class.


toClass

public static Class[] toClass(ServiceTypeBase[] stypes)
Converts an array of ServiceTypeBase to an array of Class. If a class cannot be loaded, it is left as null.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.