org.jtrix.base.IFacetProvider

An interface to anything which provides a facet, such as a node (which offers facets to netlets) or a service (which also offers facets to other netlets).


public interface IFacetProvider extends IRemote
{
    /** Bind to a facet by name
     * @param facet  The name of the facet. This should be the class name of
     *     the facet and the interface should be in the consumer's class space.
     * @throws FacetBindException  If an error occured while binding to the
     *     facet.
     * @return  The remote interface. This can then be cast into the interface
     *     of the required facet.
     */
    public IRemote bindFacet(String facet) throws FacetBindException;
}

Nik Silver 2002-03-09