public static class ConnectorPlugin.Builder
extends java.lang.Object
withFetcher(Class, Module...)
can be omitted, it is expected that all Connectors MUST register a Fetcher
component.Constructor and Description |
---|
Builder(java.lang.Class<? extends ConnectorConfig<?>> configClass) |
Modifier and Type | Method and Description |
---|---|
ConnectorPlugin |
build() |
ConnectorPlugin.Builder |
withConcurrentFetchers() |
ConnectorPlugin.Builder |
withFetcher(java.lang.Class<? extends Fetcher> klass,
com.google.inject.Module... modules)
Deprecated.
|
ConnectorPlugin.Builder |
withFetcher(ConnectorPlugin.FetcherDef fetcherDef) |
ConnectorPlugin.Builder |
withFetcher(java.lang.String name,
java.lang.Class<? extends Fetcher> klass,
com.google.inject.Module... modules)
Creates new
ConnectorPlugin.FetcherDef and adds it to fetcherDefs |
ConnectorPlugin.Builder |
withSecuritySpec(java.util.function.Function<SecuritySpecContext,SecuritySpec> consumer) |
ConnectorPlugin.Builder |
withValidator(java.lang.Class<? extends ValidationComponent> klass,
com.google.inject.Module... modules) |
public Builder(java.lang.Class<? extends ConnectorConfig<?>> configClass)
public ConnectorPlugin.Builder withConcurrentFetchers()
@Deprecated public ConnectorPlugin.Builder withFetcher(java.lang.Class<? extends Fetcher> klass, com.google.inject.Module... modules)
withFetcher(String, Class, Module...)
withFetcher(String, Class, Module...)
except the default phase name is always 'default'klass
- fetcher classmodules
- juice modulesConnectorPlugin
builderpublic ConnectorPlugin.Builder withFetcher(java.lang.String name, java.lang.Class<? extends Fetcher> klass, com.google.inject.Module... modules)
ConnectorPlugin.FetcherDef
and adds it to fetcherDefs
name
- phase nameklass
- fetcher classmodules
- juice modulesConnectorPlugin
builderpublic ConnectorPlugin.Builder withFetcher(ConnectorPlugin.FetcherDef fetcherDef)
public ConnectorPlugin.Builder withSecuritySpec(java.util.function.Function<SecuritySpecContext,SecuritySpec> consumer)
public ConnectorPlugin.Builder withValidator(java.lang.Class<? extends ValidationComponent> klass, com.google.inject.Module... modules)
public ConnectorPlugin build()