Package cn.sliew.milky.dsl
Class AbstractBuilder<O>
- java.lang.Object
-
- cn.sliew.milky.dsl.AbstractBuilder<O>
-
- All Implemented Interfaces:
Builder<O>
- Direct Known Subclasses:
AbstractConfiguredBuilder
public abstract class AbstractBuilder<O> extends Object implements Builder<O>
-
-
Constructor Summary
Constructors Constructor Description AbstractBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Obuild()Builds the object and returns it or null.protected abstract OdoBuild()Subclasses should implement this to perform the build.OgetObject()Gets the object that was built.
-
-
-
Method Detail
-
build
public final O build() throws Exception
Description copied from interface:BuilderBuilds the object and returns it or null.
-
getObject
public final O getObject()
Gets the object that was built. If it has not been started to build yet an Exception is thrown.- Returns:
- the Object that was built
-
-