A B C D G I P R S W 
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 Builder that allows Configurer to 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 Configurer that 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 Builder when done using the Configurer.
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
Configure the Builder by setting the necessary properties on the Builder.
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: Invokes AbstractConfiguredBuilder.beforeInit() for any subclass to hook into Invokes Configurer.init(Builder) for any Configurer that was applied to this builder. Invokes AbstractConfiguredBuilder.beforeConfigure() for any subclass to hook into Invokes AbstractConfiguredBuilder.performBuild() 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 Configurer by its class name or null if not found.
getConfigurer(Class<C>) - Method in interface cn.sliew.milky.dsl.ConfigurableBuilder
Gets the Configurer by its class name or null if 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() and AbstractBuilder.getObject() but checks the state to determine if AbstractBuilder.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 Configurer by its class name or null if not found.
removeConfigurer(Class<C>) - Method in interface cn.sliew.milky.dsl.ConfigurableBuilder
Removes the Configurer by its class name or null if not found.

S

setBuilder(B) - Method in class cn.sliew.milky.dsl.AbstractConfigurer
Sets the Builder to be used.

W

withDefaults() - Static method in interface cn.sliew.milky.dsl.Customizer
Returns a Customizer that does not alter the input argument.
A B C D G I P R S W 
All Classes All Packages