Class PluginContext
java.lang.Object
com.linecorp.centraldogma.server.plugin.PluginContext
- Direct Known Subclasses:
PluginInitContext
A class which is used to pass internally-created instances into the
Plugin.-
Constructor Summary
ConstructorsConstructorDescriptionPluginContext(CentralDogmaConfig config, ProjectManager projectManager, CommandExecutor commandExecutor, MeterRegistry meterRegistry, ScheduledExecutorService purgeWorker, InternalProjectInitializer internalProjectInitializer, MirrorAccessController mirrorAccessController) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theCommandExecutor.config()Returns theCentralDogmaConfig.Returns theInternalProjectInitializer.Returns theMeterRegistry.Returns theMirrorAccessController.Returns theProjectManager.Returns theScheduledExecutorServiceofpurgeWorker.
-
Constructor Details
-
PluginContext
public PluginContext(CentralDogmaConfig config, ProjectManager projectManager, CommandExecutor commandExecutor, MeterRegistry meterRegistry, ScheduledExecutorService purgeWorker, InternalProjectInitializer internalProjectInitializer, MirrorAccessController mirrorAccessController) Creates a new instance.- Parameters:
config- the Central Dogma configurationprojectManager- the instance which has the operations for theProjectscommandExecutor- the executor which executes theCommandsmeterRegistry- theMeterRegistryof the Central Dogma serverpurgeWorker- theScheduledExecutorServicefor the purging serviceinternalProjectInitializer- the initializer for the internal projectsmirrorAccessController- the controller which controls the access to the remote repos of mirrors
-
-
Method Details
-
config
Returns theCentralDogmaConfig. -
projectManager
Returns theProjectManager. -
commandExecutor
Returns theCommandExecutor. -
meterRegistry
Returns theMeterRegistry. -
purgeWorker
Returns theScheduledExecutorServiceofpurgeWorker. -
internalProjectInitializer
Returns theInternalProjectInitializer. -
mirrorAccessController
Returns theMirrorAccessController.
-