Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.naming
Interface NamingContextData


public interface NamingContextData

Represents a NamingContext of the NameService.


Method Summary
 void addBinding(NameComponent nc, Object obj, boolean isContext, boolean isGroup, boolean isRebind)
          Create a new Binding.
 BindingData getBindingData(NameComponent nc)
          Get a binding with the given name.
 byte[] getObjectId()
          Get the object Id for this NamingContext object.
 boolean isEmpty()
          Is the NamingContext empty.
 Binding[] listBindings()
          Get the list of bindings.
 BindingData removeBinding(NameComponent nc)
          Remove the binding with the given name.
 

Method Detail

getBindingData

public BindingData getBindingData(NameComponent nc)
Get a binding with the given name.


addBinding

public void addBinding(NameComponent nc,
                       Object obj,
                       boolean isContext,
                       boolean isGroup,
                       boolean isRebind)
                throws AlreadyBound,
                       NotFound
Create a new Binding. If isContext is true, then bind the given object as a NamingContext. If isGroup is true, then multiple bindings with the same name are allowed. If isRebind is true, then rebinding a new object with the given name is allowed.

Throws:
AlreadyBound - thrown if a binding with the given name already exists and isGroup and isRebind is false.
NotFound

removeBinding

public BindingData removeBinding(NameComponent nc)
Remove the binding with the given name.


listBindings

public Binding[] listBindings()
Get the list of bindings.


isEmpty

public boolean isEmpty()
Is the NamingContext empty.


getObjectId

public byte[] getObjectId()
Get the object Id for this NamingContext object.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.