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:
DeprecatedCommunityComponentFactory
public abstract class ComponentFactoryBase<Component extends DeephavenApiServerComponent>
extends Object
Provides a structured approach for constructing
DeephavenApiServerComponent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Componentbuild(Configuration configuration) Constructs a component according toconfigurationand using the prints streams fromPrintStreamGlobals.abstract Componentbuild(Configuration configuration, PrintStream out, PrintStream err) Constructs a component according to theconfiguration, invokingDeephavenApiServerComponent.Builder.withOut(PrintStream)withoutandDeephavenApiServerComponent.Builder.withErr(PrintStream)witherr.
-
Constructor Details
-
ComponentFactoryBase
public ComponentFactoryBase()
-
-
Method Details
-
build
Constructs a component according toconfigurationand 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)withoutandDeephavenApiServerComponent.Builder.withErr(PrintStream)witherr.- Parameters:
configuration- the configurationout- the outerr- the err- Returns:
- the component
-