|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.registry.directory.DirectoryRegistry
DirectoryRegistry wraps an IDirectory and makes it look like a Registry. Underlying DirectoryExceptions are converted into RegistryExceptions.
| Field Summary |
| Fields inherited from interface electric.wsdl.IWSDLConstants |
ADDRESS, BINDING, DEFINITIONS, DESCRIPTION, DOCUMENT, DOCUMENTATION, ELEMENT, ENCODED, ENCODING_STYLE, ENDPOINT, FAULT, FAULT_DETAIL, GET, GETPOST, HTTP, INPUT, LITERAL, LOCATION, MESSAGE, METHOD_NAMESPACE, MIME, NAME, NAMESPACE, OPERATION, OUTPUT, PARAMETER_ORDER, PARAMETERS, PART, PORT, PORT_TYPE, POST, RPC, SERVICE, SOAP, SOAP_ACTION, STYLE, TARGET_NAMESPACE, TARGET_NAMESPACE_PREFIX, TNS, TRANSPORT, TYPE, USE, VERB, WSDL_EXTENSION, WSDL_NAMESPACE, WSDL_PREFIX, WSDL_SOAP_NAMESPACE, WSDL_SOAP_PREFIX, WSDL_SOAP11_NAMESPACE, WSDL_SOAP11_PREFIX, WSDL_SOAP12_NAMESPACE, WSDL_SOAP12_PREFIX |
| Constructor Summary | |
DirectoryRegistry()
Construct a DirectoryRegistry that wraps an empty instance of Directory. |
|
DirectoryRegistry(IDirectory directory)
Construct a DirectoryRegistry that wraps the specified directory. |
|
| Method Summary | |
IReference |
bind(java.lang.String path,
java.lang.Class[] interfaces,
Context context)
Return a reference to the object at the specified path. |
java.lang.Object |
get(java.lang.String path)
Return the object with the specified path, or null if not found. |
IDirectory |
getDirectory()
Return my underlying IDirectory. |
IDirectory |
getDirectory(java.lang.String path)
Return the directory with the specified path, or null if not found. |
boolean |
publish(java.lang.String path,
java.lang.Object object,
Context context)
Publish the object to the specified path. |
void |
setDirectory(java.lang.String path,
IDirectory directory)
If the path is equal to "/", set the underlying top level directory to the specified directory, otherwise set the subdirectory to the specified directory. |
boolean |
unpublish(java.lang.String path)
Unpublish the object from the specified path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DirectoryRegistry()
public DirectoryRegistry(IDirectory directory)
directory - The directory to wrap.| Method Detail |
public void setDirectory(java.lang.String path,
IDirectory directory)
throws DirectoryException
path - The path.directory - The new directory value.
DirectoryException - If the underlying directory throws an exception.public IDirectory getDirectory()
public IDirectory getDirectory(java.lang.String path)
throws DirectoryException
path - The path.
DirectoryException - If the underlying directory throws an exception.
public java.lang.Object get(java.lang.String path)
throws RegistryException
path - The path.
RegistryException - If the underlying directory throws an exception.
public IReference bind(java.lang.String path,
java.lang.Class[] interfaces,
Context context)
throws RegistryException
bind in interface IRegistrypath - The path.interfaces - The interfaces.context - The context
RegistryException
public boolean publish(java.lang.String path,
java.lang.Object object,
Context context)
throws RegistryException
publish in interface IRegistrypath - object - context - The context, ignored.
RegistryException
public boolean unpublish(java.lang.String path)
throws RegistryException
unpublish in interface IRegistrypath -
RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||