electric.registry
Interface IRegistry

All Known Implementing Classes:
ClusterRegistry, CompoundRegistry, CrossApplicationRegistry, DirectoryRegistry, LocalRegistry, SOAPRegistry

public interface IRegistry

IRegistry is the interface that must be implemented by all registries. It provides methods for publishing, unpublishing and binding.

Author:
webMethods

Method Summary
 IReference bind(java.lang.String path, java.lang.Class[] interfaces, Context context)
          Return a reference to the service described by the path.
 boolean publish(java.lang.String path, java.lang.Object object, Context context)
          Publish the object to the specified path.
 boolean unpublish(java.lang.String path)
          Unpublish the object from the specified path.
 

Method Detail

publish

public boolean publish(java.lang.String path,
                       java.lang.Object object,
                       Context context)
                throws RegistryException
Publish the object to the specified path. If this registry cannot process paths of the specified form, immediately return false.

Parameters:
path - The path.
object - The object.
context - The context.
Returns:
True if the object was published.
Throws:
RegistryException

unpublish

public boolean unpublish(java.lang.String path)
                  throws RegistryException
Unpublish the object from the specified path. If this registry cannot process paths of the specified form, immediately return false.

Parameters:
path - The path.
Returns:
True if the object was unpublished.
Throws:
RegistryException

bind

public IReference bind(java.lang.String path,
                       java.lang.Class[] interfaces,
                       Context context)
                throws RegistryException
Return a reference to the service described by the path. If this registry cannot process paths of the specified form, immediately return null.

Parameters:
path - The path.
interfaces - The interfaces
context - The context.
Returns:
A reference to the service.
Throws:
RegistryException


copyright© 2001-2004 by webMethods All Rights Reserved.