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
Modifier and TypeMethodDescriptionvoidaddExternalContext(ServiceName serviceName) Adds an external context.getParentExternalContext(ServiceName childServiceName) Retrieves the external context that is a parent of the specified child service name.booleanremoveExternalContext(ServiceName serviceName) Removes an external context.
-
Method Details
-
addExternalContext
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
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
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.
-