A B C D G I P R S W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractBuilder<O> - Class in cn.sliew.milky.dsl
- AbstractBuilder() - Constructor for class cn.sliew.milky.dsl.AbstractBuilder
- AbstractConfiguredBuilder<O,B extends ConfigurableBuilder<O,B>> - Class in cn.sliew.milky.dsl
-
A base
Builderthat allowsConfigurerto be applied to it. - AbstractConfiguredBuilder() - Constructor for class cn.sliew.milky.dsl.AbstractConfiguredBuilder
- AbstractConfigurer<O,B extends Builder<O>> - Class in cn.sliew.milky.dsl
-
A base class for
Configurerthat allows subclasses to only implement the methods they are interested in. - AbstractConfigurer() - Constructor for class cn.sliew.milky.dsl.AbstractConfigurer
- AlreadyBuiltException - Exception in cn.sliew.milky.dsl
-
Thrown when
AbstractBuilder.build()is two or more times. - AlreadyBuiltException() - Constructor for exception cn.sliew.milky.dsl.AlreadyBuiltException
- AlreadyBuiltException(String) - Constructor for exception cn.sliew.milky.dsl.AlreadyBuiltException
- AlreadyBuiltException(String, Throwable) - Constructor for exception cn.sliew.milky.dsl.AlreadyBuiltException
- AlreadyBuiltException(Throwable) - Constructor for exception cn.sliew.milky.dsl.AlreadyBuiltException
- and() - Method in class cn.sliew.milky.dsl.AbstractConfigurer
-
Return the
Builderwhen done using theConfigurer. - apply(C) - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
B
- beforeConfigure() - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Invoked prior to invoking each
Configurer.configure(Builder)method. - beforeInit() - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Invoked prior to invoking each
Configurer.init(Builder)method. - build() - Method in class cn.sliew.milky.dsl.AbstractBuilder
- build() - Method in interface cn.sliew.milky.dsl.Builder
-
Builds the object and returns it or null.
- Builder<O> - Interface in cn.sliew.milky.dsl
-
Interface for building an Object
C
- cn.sliew.milky.dsl - package cn.sliew.milky.dsl
- ConfigurableBuilder<O,H extends ConfigurableBuilder<O,H>> - Interface in cn.sliew.milky.dsl
- configure(B) - Method in class cn.sliew.milky.dsl.AbstractConfigurer
- configure(B) - Method in interface cn.sliew.milky.dsl.Configurer
- Configurer<O,B extends Builder<O>> - Interface in cn.sliew.milky.dsl
-
Allows for configuring a
Builder. - customize(T) - Method in interface cn.sliew.milky.dsl.Customizer
-
Performs the customizations on the input argument.
- Customizer<T> - Interface in cn.sliew.milky.dsl
-
Callback interface that accepts a single input argument and returns no result.
D
- doBuild() - Method in class cn.sliew.milky.dsl.AbstractBuilder
-
Subclasses should implement this to perform the build.
- doBuild() - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Executes the build using the
Configurer's that have been applied using the following steps: InvokesbeforeInit()for any subclass to hook into InvokesConfigurer.init(Builder)for anyConfigurerthat was applied to this builder. InvokesbeforeConfigure()for any subclass to hook into InvokesperformBuild()which actually builds the Object
G
- getBuilder() - Method in class cn.sliew.milky.dsl.AbstractConfigurer
-
Gets the
Builder. - getConfigurer(Class<C>) - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Gets the
Configurerby its class name ornullif not found. - getConfigurer(Class<C>) - Method in interface cn.sliew.milky.dsl.ConfigurableBuilder
-
Gets the
Configurerby its class name ornullif not found. - getObject() - Method in class cn.sliew.milky.dsl.AbstractBuilder
-
Gets the object that was built.
- getOrBuild() - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Similar to
AbstractBuilder.build()andAbstractBuilder.getObject()but checks the state to determine ifAbstractBuilder.build()needs to be called first.
I
- init(B) - Method in class cn.sliew.milky.dsl.AbstractConfigurer
- init(B) - Method in interface cn.sliew.milky.dsl.Configurer
-
Initialize the
Builder.
P
- performBuild() - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Subclasses must implement this method to build the object that is being returned.
R
- removeConfigurer(Class<C>) - Method in class cn.sliew.milky.dsl.AbstractConfiguredBuilder
-
Removes and returns the
Configurerby its class name ornullif not found. - removeConfigurer(Class<C>) - Method in interface cn.sliew.milky.dsl.ConfigurableBuilder
-
Removes the
Configurerby its class name ornullif not found.
S
- setBuilder(B) - Method in class cn.sliew.milky.dsl.AbstractConfigurer
-
Sets the
Builderto be used.
W
- withDefaults() - Static method in interface cn.sliew.milky.dsl.Customizer
-
Returns a
Customizerthat does not alter the input argument.
All Classes All Packages