Package io.deephaven.server.runner
Class ComponentFactoryBase<Component extends DeephavenApiServerComponent>
java.lang.Object
io.deephaven.server.runner.ComponentFactoryBase<Component>
- Type Parameters:
Component
- the component type
- Direct Known Subclasses:
CommunityComponentFactory
,DeprecatedCommunityComponentFactory
public abstract class ComponentFactoryBase<Component extends DeephavenApiServerComponent>
extends Object
Provides a structured approach for constructing
DeephavenApiServerComponent
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Component
build
(Configuration configuration) Constructs a component according toconfiguration
and using the prints streams fromPrintStreamGlobals
.abstract Component
build
(Configuration configuration, PrintStream out, PrintStream err) Constructs a component according to theconfiguration
, invokingDeephavenApiServerComponent.Builder.withOut(PrintStream)
without
andDeephavenApiServerComponent.Builder.withErr(PrintStream)
witherr
.
-
Constructor Details
-
ComponentFactoryBase
public ComponentFactoryBase()
-
-
Method Details
-
build
Constructs a component according toconfiguration
and using the prints streams fromPrintStreamGlobals
.Equivalent to
build(configuration, PrintStreamGlobals.getOut(), PrintStreamGlobals.getErr())
.- Parameters:
configuration
- the configuration- Returns:
- the component
- See Also:
-
build
Constructs a component according to theconfiguration
, invokingDeephavenApiServerComponent.Builder.withOut(PrintStream)
without
andDeephavenApiServerComponent.Builder.withErr(PrintStream)
witherr
.- Parameters:
configuration
- the configurationout
- the outerr
- the err- Returns:
- the component
-