类 AbstractChartLoader<T>
- java.lang.Object
-
- org.microbean.helm.chart.AbstractChartLoader<T>
-
- 类型参数:
T- the type of source from whichChartOuterClass.Charts may be loaded
- 所有已实现的接口:
Closeable,AutoCloseable
- 直接已知子类:
StreamOrientedChartLoader
public abstract class AbstractChartLoader<T> extends Object implements Closeable
An abstract class whose implementations are capable of reading in the raw materials for a Helm chart from some kind of source and creating newChartOuterClass.Chartinstances from such raw materials.Implementations should pay close attention to any potential resource leaks and control them in their implementation of the
Closeable.close()method.- 作者:
- Laird Nelson
- 另请参阅:
load(Object),ChartOuterClass.Chart
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractChartLoader()Creates a newAbstractChartLoader.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract ChartOuterClass.Chart.Builderload(ChartOuterClass.Chart.Builder parent, T source, String valueName)Creates a newChartOuterClass.Chart.Builderfrom the suppliedsourceand returns it.ChartOuterClass.Chart.Builderload(T source)ChartOuterClass.Chart.Builderload(T source, String valueName)Creates a new "top-level"ChartOuterClass.Chart.Builderfrom the suppliedsourceand returns it.
-
-
-
构造器详细资料
-
AbstractChartLoader
protected AbstractChartLoader()
Creates a newAbstractChartLoader.
-
-
方法详细资料
-
load
public final ChartOuterClass.Chart.Builder load(T source, String valueName) throws IOException
Creates a new "top-level"ChartOuterClass.Chart.Builderfrom the suppliedsourceand returns it.Implementations of this method must not return
null.- 参数:
source- the source from which a newChartOuterClass.Chart.Buildershould be created; must not benullvalueName- value filename- 返回:
- a new
ChartOuterClass.Chart.Builder; nevernull - 抛出:
NullPointerException- ifsourceisnullIOException- if reading the suppliedsourcecould not complete normally
-
load
public final ChartOuterClass.Chart.Builder load(T source) throws IOException
- 抛出:
IOException
-
load
public abstract ChartOuterClass.Chart.Builder load(ChartOuterClass.Chart.Builder parent, T source, String valueName) throws IOException
Creates a newChartOuterClass.Chart.Builderfrom the suppliedsourceand returns it.Implementations of this method must not return
nulland must not returnparent.- 参数:
parent- theChartOuterClass.Chart.Builderthat will serve as the parent of theChartOuterClass.Chart.Builderthat will be returned; may be (and often is)null, indicating that theChartOuterClass.Chart.Builderbeing returned does not represent a subchart; must not be what is returnedsource- the source from which a newChartOuterClass.Chart.Buildershould be created; must not benull- 返回:
- a new
ChartOuterClass.Chart.Builder; nevernull; neverparent - 抛出:
NullPointerException- ifsourceisnullIOException- if reading the suppliedsourcecould not complete normally
-
-