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
ConstructorDescriptionPluginContext
(CentralDogmaConfig config, ProjectManager projectManager, CommandExecutor commandExecutor, MeterRegistry meterRegistry, ScheduledExecutorService purgeWorker, InternalProjectInitializer internalProjectInitializer) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theCommandExecutor
.config()
Returns theCentralDogmaConfig
.Returns theInternalProjectInitializer
.Returns theMeterRegistry
.Returns theProjectManager
.Returns theScheduledExecutorService
ofpurgeWorker
.
-
Constructor Details
-
PluginContext
public PluginContext(CentralDogmaConfig config, ProjectManager projectManager, CommandExecutor commandExecutor, MeterRegistry meterRegistry, ScheduledExecutorService purgeWorker, InternalProjectInitializer internalProjectInitializer) Creates a new instance.- Parameters:
config
- the Central Dogma configurationprojectManager
- the instance which has the operations for theProject
scommandExecutor
- the executor which executes theCommand
smeterRegistry
- theMeterRegistry
of the Central Dogma serverpurgeWorker
- theScheduledExecutorService
for the purging service
-
-
Method Details
-
config
Returns theCentralDogmaConfig
. -
projectManager
Returns theProjectManager
. -
commandExecutor
Returns theCommandExecutor
. -
meterRegistry
Returns theMeterRegistry
. -
purgeWorker
Returns theScheduledExecutorService
ofpurgeWorker
. -
internalProjectInitializer
Returns theInternalProjectInitializer
.
-