Package org.apache.juneau.rest.arg
Class RestOpArgList.Builder
- Enclosing class:
- RestOpArgList
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPrepends the specified rest op arg classes to the list.protected RestOpArgListCreates the bean when the bean type isnull or is the default value.Overrides the bean returned by theBeanBuilder.build()method.Overrides the bean type produced by theBeanBuilder.build()method.
-
Constructor Details
-
Builder
Constructor.- Parameters:
beanStore- The bean store to use for creating beans.
-
-
Method Details
-
add
Prepends the specified rest op arg classes to the list.- Parameters:
values- The values to add.- Returns:
- This object.
- Throws:
IllegalArgumentException- if any class does not extend fromRestOpArg.
-
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<RestOpArgList>- 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<RestOpArgList>- Parameters:
value- The setting value.- Returns:
- This object.
-
buildDefault
Description copied from class:BeanBuilderCreates the bean when the bean type isnull or is the default value.- Overrides:
buildDefaultin classBeanBuilder<RestOpArgList>- Returns:
- A new bean.
-