Class ExternalContextsNavigableSet
java.lang.Object
org.jboss.as.naming.context.external.ExternalContextsNavigableSet
- All Implemented Interfaces:
ExternalContexts
An
ExternalContexts implementation using a NavigableSet to store the service names of the existent external contexts.- Author:
- Eduardo Martins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalContext(ServiceName serviceName) Adds an external context.getParentExternalContext(ServiceName serviceName) Retrieves the external context that is a parent of the specified child service name.booleanremoveExternalContext(ServiceName serviceName) Removes an external context.
-
Constructor Details
-
ExternalContextsNavigableSet
public ExternalContextsNavigableSet()
-
-
Method Details
-
addExternalContext
Description copied from interface:ExternalContextsAdds an external context.- Specified by:
addExternalContextin interfaceExternalContexts- Parameters:
serviceName- the external context's service name
-
removeExternalContext
Description copied from interface:ExternalContextsRemoves an external context.- Specified by:
removeExternalContextin interfaceExternalContexts- Parameters:
serviceName- the external context's service name- Returns:
- true if an external context with the specified jndi name was found and removed.
-
getParentExternalContext
Description copied from interface:ExternalContextsRetrieves the external context that is a parent of the specified child service name.- Specified by:
getParentExternalContextin interfaceExternalContexts- 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.
-