Class WritableServiceBasedNamingStore

java.lang.Object
org.jboss.as.naming.ServiceBasedNamingStore
org.jboss.as.naming.WritableServiceBasedNamingStore
All Implemented Interfaces:
NamingStore, WritableNamingStore

public class WritableServiceBasedNamingStore extends ServiceBasedNamingStore implements WritableNamingStore
Author:
John Bailey, Eduardo Martins, Richard Opalka
  • Constructor Details

    • WritableServiceBasedNamingStore

      public WritableServiceBasedNamingStore(org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceName serviceNameBase, org.jboss.msc.service.ServiceTarget serviceTarget)
  • Method Details

    • bind

      public void bind(Name name, Object object, Class<?> bindType) throws NamingException
      Description copied from interface: WritableNamingStore
      Bind and object into the naming store, creating parent contexts if needed. All parent contexts must be created before this can be executed.
      Specified by:
      bind in interface WritableNamingStore
      Parameters:
      name - The entry name
      object - The entry object
      bindType - The entry class
      Throws:
      NamingException - If any problems occur
    • bind

      public void bind(Name name, Object object) throws NamingException
      Description copied from interface: WritableNamingStore
      Bind and object into the naming store, creating parent contexts if needed. All parent contexts must be created before this can be executed. The bind object type will be determined by the class of the object being passed in.
      Specified by:
      bind in interface WritableNamingStore
      Parameters:
      name - The entry name
      object - The entry object
      Throws:
      NamingException - If any problems occur
    • rebind

      public void rebind(Name name, Object object) throws NamingException
      Description copied from interface: WritableNamingStore
      Re-bind and object into the naming store. All parent contexts must be created before this can be executed. The bind object type will be determined by the class of the object being passed in.
      Specified by:
      rebind in interface WritableNamingStore
      Parameters:
      name - The entry name
      object - The entry object
      Throws:
      NamingException - If any problems occur
    • rebind

      public void rebind(Name name, Object object, Class<?> bindType) throws NamingException
      Description copied from interface: WritableNamingStore
      Re-bind and object into the naming store. All parent contexts must be created before this can be executed.
      Specified by:
      rebind in interface WritableNamingStore
      Parameters:
      name - The entry name
      object - The entry object
      bindType - The entry class
      Throws:
      NamingException - If any problems occur
    • unbind

      public void unbind(Name name) throws NamingException
      Description copied from interface: WritableNamingStore
      Unbind an object from the naming store. An entry for the name must exist.
      Specified by:
      unbind in interface WritableNamingStore
      Parameters:
      name - The entry name
      Throws:
      NamingException - If any problems occur
    • createSubcontext

      public Context createSubcontext(Name name) throws NamingException
      Description copied from interface: WritableNamingStore
      Create a sub-context for the provided name.
      Specified by:
      createSubcontext in interface WritableNamingStore
      Parameters:
      name - The entry name
      Returns:
      The new sub-context
      Throws:
      NamingException - If any errors occur
    • pushOwner

      public static void pushOwner(org.jboss.msc.service.ServiceName deploymentUnitServiceName)
    • pushOwner

      public static void pushOwner(org.jboss.msc.service.ServiceTarget serviceTarget)
    • popOwner

      public static void popOwner()