public static interface DynamicOptions.ClassNameProvider extends DynamicOptions.DynamicBean
Do this by binding to just the name of the command you are going to bind to so that your classLoader does not load the command's class which likely is not in your classpath. To ensure that the command's class is not in your classpath, you can exclude it during your build.
For example:
bind(com.google.gerrit.server.DynamicOptions.DynamicBean.class) .annotatedWith(Exports.named( "com.google.gerrit.plugins.otherplugin.command")) .to(MyOptionsClassNameProvider.class); static class MyOptionsClassNameProvider implements DynamicOptions.ClassNameProvider {
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName() |