public interface ManagementContextFactory extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the management context returned by
getManagementContext() . |
ManagementContext |
getManagementContext()
Gets the management context which sub-commands should use in order to manage the directory server.
|
ManagementContext getManagementContext() throws com.forgerock.opendj.cli.ClientException
The manangement context is created lazily, this method should always return the same management context instance.
com.forgerock.opendj.cli.ClientException
- If the management context could not be created.void close() throws IOException
getManagementContext()
.close
in interface AutoCloseable
close
in interface Closeable
IOException
- If an I/O error occurs when trying to close the management context.Copyright 2010-2018 ForgeRock AS.