@Test public void testAdapter() { LinkEtlAdapter adapter = mock(LinkEtlAdapter.class); LmRuntimeBuilder builder = new LmRuntimeBuilder().withTargetRuntime(cayenneRuntime).adapter(adapter); verifyZeroInteractions(adapter); builder.build(); verify(adapter).contributeToRuntime(any(Binder.class)); }
public LmRuntimeBuilder adapter(LinkEtlAdapter adapter) { this.adapters.add(adapter); return this; }
LmRuntimeBuilder { public LmRuntimeBuilder adapter(LinkEtlAdapter adapter) { this.adapters.add(adapter); return this; } }
LmRuntimeBuilder { public LmRuntimeBuilder adapter(LinkEtlAdapter adapter) { this.adapters.add(adapter); return this; } LmRuntimeBuilder(); }
LmRuntimeBuilder { public LmRuntimeBuilder adapter(LinkEtlAdapter adapter) { this.adapters.add(adapter); return this; } LmRuntimeBuilder(); LmRuntimeBuilder adapter(LinkEtlAdapter adapter); LmRuntimeBuilder withTargetRuntime(ServerRuntime targetRuntime); LmRuntimeBuilder withTokenManager(ITokenManager tokenManager); LmRuntimeBuilder withConnector(String id, Connector connector); LmRuntimeBuilder withConnectorFactory(Class<C> connectorType,
                                                                       IConnectorFactory<C> factory); LmRuntimeBuilder withConnectorFactory(Class<C> connectorType,
                                                                       Class<? extends IConnectorFactory<C>> factoryType); LmRuntimeBuilder withConnectorFromTarget(); LmRuntimeBuilder withExtractorFactory(String extractorType, Class<? extends IExtractorFactory<?>> factoryType); LmRuntimeBuilder withExtractorFactory(String extractorType, IExtractorFactory<?> factory); LmRuntimeBuilder valueConverter(Class<?> javaType, ValueConverter converter); LmRuntimeBuilder extractorResolver(ResourceResolver loader); LmRuntimeBuilder extractorModelsRoot(File rootDir); LmRuntimeBuilder extractorModelsRoot(URL baseUrl); LmRuntime build(); }
LmRuntimeBuilder { public LmRuntimeBuilder adapter(LinkEtlAdapter adapter) { this.adapters.add(adapter); return this; } LmRuntimeBuilder(); LmRuntimeBuilder adapter(LinkEtlAdapter adapter); LmRuntimeBuilder withTargetRuntime(ServerRuntime targetRuntime); LmRuntimeBuilder withTokenManager(ITokenManager tokenManager); LmRuntimeBuilder withConnector(String id, Connector connector); LmRuntimeBuilder withConnectorFactory(Class<C> connectorType,
                                                                       IConnectorFactory<C> factory); LmRuntimeBuilder withConnectorFactory(Class<C> connectorType,
                                                                       Class<? extends IConnectorFactory<C>> factoryType); LmRuntimeBuilder withConnectorFromTarget(); LmRuntimeBuilder withExtractorFactory(String extractorType, Class<? extends IExtractorFactory<?>> factoryType); LmRuntimeBuilder withExtractorFactory(String extractorType, IExtractorFactory<?> factory); LmRuntimeBuilder valueConverter(Class<?> javaType, ValueConverter converter); LmRuntimeBuilder extractorResolver(ResourceResolver loader); LmRuntimeBuilder extractorModelsRoot(File rootDir); LmRuntimeBuilder extractorModelsRoot(URL baseUrl); LmRuntime build(); static final String START_TOKEN_VAR; static final String END_TOKEN_VAR; }