Interface ExternalContexts
-
- All Known Implementing Classes:
ExternalContextsNavigableSet
public interface ExternalContextsThe 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 voidaddExternalContext(ServiceName serviceName)Adds an external context.ServiceNamegetParentExternalContext(ServiceName childServiceName)Retrieves the external context that is a parent of the specified child service name.booleanremoveExternalContext(ServiceName serviceName)Removes an external context.
-
-
-
Method Detail
-
addExternalContext
void addExternalContext(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(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
ServiceName getParentExternalContext(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.
-
-