Class ExternalContextsNavigableSet

java.lang.Object
org.jboss.as.naming.context.external.ExternalContextsNavigableSet
All Implemented Interfaces:
ExternalContexts

public class ExternalContextsNavigableSet extends Object implements ExternalContexts
An ExternalContexts implementation using a NavigableSet to store the service names of the existent external contexts.
Author:
Eduardo Martins
  • Constructor Details

    • ExternalContextsNavigableSet

      public ExternalContextsNavigableSet()
  • Method Details

    • addExternalContext

      public void addExternalContext(org.jboss.msc.service.ServiceName serviceName)
      Description copied from interface: ExternalContexts
      Adds an external context.
      Specified by:
      addExternalContext in interface ExternalContexts
      Parameters:
      serviceName - the external context's service name
    • removeExternalContext

      public boolean removeExternalContext(org.jboss.msc.service.ServiceName serviceName)
      Description copied from interface: ExternalContexts
      Removes an external context.
      Specified by:
      removeExternalContext in interface ExternalContexts
      Parameters:
      serviceName - the external context's service name
      Returns:
      true if an external context with the specified jndi name was found and removed.
    • getParentExternalContext

      public org.jboss.msc.service.ServiceName getParentExternalContext(org.jboss.msc.service.ServiceName serviceName)
      Description copied from interface: ExternalContexts
      Retrieves the external context that is a parent of the specified child service name.
      Specified by:
      getParentExternalContext in interface ExternalContexts
      Parameters:
      serviceName - a external context's child service name
      Returns:
      null if there is currently no external context, which is a parent of the specified service name.