net.jini.lookup.entry
Interface EntryBean
- All Known Implementing Classes:
- AddressBean, CommentBean, LocationBean, NameBean, ServiceInfoBean, StatusBean, UIDescriptorBean
- 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.
- Author:
- Sun Microsystems, Inc.
- 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. |
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.
Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.