Package org.apache.juneau.svl
Class VarResolver.Builder
- Enclosing class:
- VarResolver
Builder class.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor.protectedBuilder(VarResolver copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionAdds a bean to the bean store in this session.protected VarResolverCreates the bean when the bean type isnull or is the default value.Adds the default variables to this builder.Overrides the bean returned by theBeanBuilder.build()method.Overrides the bean type produced by theBeanBuilder.build()method.final VarResolver.BuilderRegister new variables with this resolver.Register new variables with this resolver.Register new variables with this resolver.
-
Constructor Details
-
Builder
protected Builder()Constructor. -
Builder
Copy constructor.- Parameters:
copyFrom- The bean to copy from.
-
-
Method Details
-
bean
Adds a bean to the bean store in this session.- Type Parameters:
T- The bean type.- Parameters:
c- The bean type.value- The bean.- Returns:
- This object .
-
defaultVars
Adds the default variables to this builder.The default variables are:
- Returns:
- This object .
-
impl
Description copied from class:BeanBuilderOverrides the bean returned by theBeanBuilder.build()method.Use this method if you want this builder to return an already-instantiated bean.
- Overrides:
implin classBeanBuilder<VarResolver>- Parameters:
value- The setting value.- Returns:
- This object.
-
type
Description copied from class:BeanBuilderOverrides the bean type produced by theBeanBuilder.build()method.Use this method if you want to instantiated a bean subclass.
- Overrides:
typein classBeanBuilder<VarResolver>- Parameters:
value- The setting value.- Returns:
- This object.
-
vars
Register new variables with this resolver.- Parameters:
values- The variable resolver classes. These classes must subclass fromVarand have no-arg constructors.- Returns:
- This object .
-
vars
Register new variables with this resolver.- Parameters:
values- The variable resolver classes. These classes must subclass fromVarand have no-arg constructors.- Returns:
- This object .
-
vars
Register new variables with this resolver.- Parameters:
values- The variable resolver classes. These classes must subclass fromVarand have no-arg constructors.- Returns:
- This object .
-
buildDefault
Description copied from class:BeanBuilderCreates the bean when the bean type isnull or is the default value.- Overrides:
buildDefaultin classBeanBuilder<VarResolver>- Returns:
- A new bean.
-