Package org.apache.juneau.svl
Class VarResolver.Builder
- Enclosing class:
VarResolver
Builder class.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Builder()
Constructor.protected
Builder
(VarResolver copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionAdds a bean to the bean store in this session.protected VarResolver
Creates 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.Builder
Register 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
-
buildDefault
Description copied from class:BeanBuilder
Creates the bean when the bean type isnull or is the default value.- Overrides:
buildDefault
in classBeanBuilder<VarResolver>
- Returns:
- A new bean.
-
vars
Register new variables with this resolver.- Parameters:
values
- The variable resolver classes. These classes must subclass fromVar
and have no-arg constructors.- Returns:
- This object .
-
vars
Register new variables with this resolver.- Parameters:
values
- The variable resolver classes. These classes must subclass fromVar
and have no-arg constructors.- Returns:
- This object .
-
vars
Register new variables with this resolver.- Parameters:
values
- The variable resolver classes. These classes must subclass fromVar
and have no-arg constructors.- Returns:
- This object .
-
defaultVars
Adds the default variables to this builder.The default variables are:
- Returns:
- This object .
-
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 .
-
impl
Description copied from class:BeanBuilder
Overrides the bean returned by theBeanBuilder.build()
method.Use this method if you want this builder to return an already-instantiated bean.
- Overrides:
impl
in classBeanBuilder<VarResolver>
- Parameters:
value
- The setting value.- Returns:
- This object.
-
type
Description copied from class:BeanBuilder
Overrides the bean type produced by theBeanBuilder.build()
method.Use this method if you want to instantiated a bean subclass.
- Overrides:
type
in classBeanBuilder<VarResolver>
- Parameters:
value
- The setting value.- Returns:
- This object.
-