Interface ExternalContexts

  • All Known Implementing Classes:
    ExternalContextsNavigableSet

    public interface ExternalContexts
    The external contexts which exist in Wildfly's Naming subsystem.
    Author:
    Eduardo Martins
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addExternalContext​(org.jboss.msc.service.ServiceName serviceName)
      Adds an external context.
      org.jboss.msc.service.ServiceName getParentExternalContext​(org.jboss.msc.service.ServiceName childServiceName)
      Retrieves the external context that is a parent of the specified child service name.
      boolean removeExternalContext​(org.jboss.msc.service.ServiceName serviceName)
      Removes an external context.
    • Method Detail

      • addExternalContext

        void addExternalContext​(org.jboss.msc.service.ServiceName serviceName)
                         throws IllegalArgumentException
        Adds an external context.
        Parameters:
        serviceName - the external context's service name
        Throws:
        IllegalArgumentException - if there is already an external context with such service name, or if there is already an external context which is a child or parent of the one to add
      • removeExternalContext

        boolean removeExternalContext​(org.jboss.msc.service.ServiceName serviceName)
        Removes an external context.
        Parameters:
        serviceName - the external context's service name
        Returns:
        true if an external context with the specified jndi name was found and removed.
      • getParentExternalContext

        org.jboss.msc.service.ServiceName getParentExternalContext​(org.jboss.msc.service.ServiceName childServiceName)
        Retrieves the external context that is a parent of the specified child service name.
        Parameters:
        childServiceName - 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.