Interface ManagementContextFactory
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
LdapManagementContextFactory
A management context factory for the dsconfig tool.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the management context returned bygetManagementContext()
.Gets the management context which sub-commands should use in order to manage the directory server.
-
Method Details
-
getManagementContext
Gets the management context which sub-commands should use in order to manage the directory server.The manangement context is created lazily, this method should always return the same management context instance.
- Returns:
- Returns the management context which sub-commands should use in order to manage the directory server.
- Throws:
com.forgerock.opendj.cli.ClientException
- If the management context could not be created.
-
close
Closes the management context returned bygetManagementContext()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- If an I/O error occurs when trying to close the management context.
-