Package org.apache.juneau.cp
Class BeanStore.Builder
java.lang.Object
org.apache.juneau.cp.BeanStore.Builder
- Enclosing class:
- BeanStore
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates this bean store.Overrides the bean to return from thebuild()method.Specifies the outer bean context.Specifies the parent bean store.readOnly()Specifies that the bean store is read-only.Specifies that the bean store being created should be thread-safe.Overrides the bean store type.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates this bean store.- Returns:
- A new bean store.
-
impl
Overrides the bean to return from thebuild()method.- Parameters:
value- The bean to return from thebuild()method.- Returns:
- This object.
-
outer
Specifies the outer bean context.The outer context bean to use when calling constructors on inner classes.
- Parameters:
value- The outer bean context. Can benull .- Returns:
- This object.
-
parent
Specifies the parent bean store.Bean searches are performed recursively up this parent chain.
- Parameters:
value- The setting value.- Returns:
- This object.
-
readOnly
Specifies that the bean store is read-only.This means methods such as
BeanStore.addBean(Class, Object)cannot be used.- Returns:
- This object.
-
threadSafe
Specifies that the bean store being created should be thread-safe.- Returns:
- This object.
-
type
Overrides the bean store type.The specified type must have one of the following:
- A static
getInstance() method. - A public constructor that takes in this builder.
- A protected constructor that takes in this builder.
- Parameters:
value- The bean store type.- Returns:
- This object.
- A static
-