net.jini.lookup.entry
Class EntryBeans

java.lang.Object
  |
  +--net.jini.lookup.entry.EntryBeans

public class EntryBeans
extends java.lang.Object

Utility class for handling JavaBeans(TM) components that relate to Entry classes in the Jini(TM) Lookup service.


Constructor Summary
EntryBeans()
           
 
Method Summary
static EntryBean createBean(Entry ent)
          Create a bean of the appropriate type for the given Entry object, and link it to the object for immediate manipulation.
static java.lang.Class getBeanClass(java.lang.Class c)
          Return the class of JavaBeans component that corresponds to a particular Entry class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryBeans

public EntryBeans()
Method Detail

createBean

public static EntryBean createBean(Entry ent)
                            throws java.lang.ClassNotFoundException,
                                   java.io.IOException
Create a bean of the appropriate type for the given Entry object, and link it to the object for immediate manipulation.
Parameters:
ent - the Entry for which to create and link a bean
Returns:
a new bean of the right type, linked to the given Entry
Throws:
java.lang.ClassNotFoundException - no bean class of the appropriate type could be found
ClassCastException - the bean class does not implement the EntryBean interface
java.io.IOException - the JavaBeans component could not be instantiated

getBeanClass

public static java.lang.Class getBeanClass(java.lang.Class c)
                                    throws java.lang.ClassNotFoundException
Return the class of JavaBeans component that corresponds to a particular Entry class. The class passed in as argument must implement the Entry interface.
Parameters:
c - the class for which a JavaBeans component should be found
Returns:
corresponding JavaBeans component class
Throws:
java.lang.ClassNotFoundException - no such class could be found
ClassCastException - the class does not implement the EntryBean interface
See Also:
EntryBean


Copyright © 1999 Sun Microsystems, Inc. All rights reserved