Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.jini.lookup.entry
Interface EntryBean

All Known Implementing Classes:
  AddressBean, CommentBean, LocationBean, NameBean, ServiceInfoBean, StatusBean

public interface EntryBean

Interface to be implemented by all JavaBeans(TM) components that act as "front ends" to Entry classes. Such components must follow several patterns:

- The component's name is derived from the name of the Entry class, with "Bean" appended. Thus, the JavaBeans component for the `foo.Bar` Entry class is `foo.BarBean`.
- The component has a public no-arg constructor; this creates a new, uninitialized, instance of the JavaBeans component's Entry class.
- For each public object field `foo` in the associated class, the JavaBeans component has both a `setFoo` and a `getFoo` method. The former returns the value of that field in the linked Entry object, and the latter sets the value of that field.

See Also:
  `Entry`

Method Summary
`Entry` | `followLink()` Return the Entry linked to by this JavaBeans component.
`void` | `makeLink(Entry e)` Make a link to an Entry object.

Method Detail

### makeLink

    public void makeLink(Entry e)

  Make a link to an Entry object.

  Parameters:
    `e` - the Entry object to link to
  Throws:
    `ClassCastException` - the Entry is not of the correct type for this JavaBeans component

### followLink

    public Entry followLink()

  Return the Entry linked to by this JavaBeans component.

  Returns:
    the entry linked to by this JavaBeans component.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved