Package com.google.gerrit.server.change
Interface ChangePluginDefinedInfoFactory
-
public interface ChangePluginDefinedInfoFactory
Interface for plugins to provide additional fields inChangeInfo
.Register a
ChangePluginDefinedInfoFactory
in a pluginModule
like this:DynamicSet.bind(binder(), ChangePluginDefinedInfoFactory.class).to(YourClass.class);
See the plugin developer documentation for more details and examples.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Change.Id,PluginDefinedInfo>
createPluginDefinedInfos(Collection<ChangeData> cds, DynamicOptions.BeanProvider beanProvider, String plugin)
Create a plugin-provided info field for each of the providedChangeData
s.
-
-
-
Method Detail
-
createPluginDefinedInfos
Map<Change.Id,PluginDefinedInfo> createPluginDefinedInfos(Collection<ChangeData> cds, DynamicOptions.BeanProvider beanProvider, String plugin)
Create a plugin-provided info field for each of the providedChangeData
s.Typically, implementations will subclass
PluginDefinedInfo
to add additional fields.- Parameters:
cds
- changes.beanProvider
- provider ofDynamicBean
s, which may be used for reading options.plugin
- plugin name.- Returns:
- map of the plugin's special info for each change
-
-