Uses of Class
org.apache.juneau.commons.inject.BeanInstantiator.Builder
Packages that use BeanInstantiator.Builder
Package
Description
Lightweight bean lookup, contribution, and injection support for Juneau.
REST Client API
-
Uses of BeanInstantiator.Builder in org.apache.juneau.commons.inject
Methods in org.apache.juneau.commons.inject that return BeanInstantiator.BuilderModifier and TypeMethodDescription<T2> BeanInstantiator.Builder<T>Adds a bean to the internal bean store.<T2> BeanInstantiator.Builder<T>Adds a named bean to the internal bean store.BeanInstantiator.Builder.autoWireBuilder()Enables auto-wiring of bean store entries into matching setter methods on the builder.Specifies the builder type to use for creating the bean.Specifies an existing builder instance to use for creating the bean.BeanInstantiator.Builder.builderClassNames(String... names) Specifies custom class names to look for when auto-detecting builder inner classes.BeanInstantiator.Builder.builderInitializer(Consumer<Object> initializer) Registers a callback that is invoked on the builder instance beforebuild()is called.BeanInstantiator.Builder.builderMethodNames(String... names) Specifies custom method names to look for when auto-detecting builder factory methods.BeanInstantiator.Builder.buildMethodNames(String... names) Specifies custom method names to look for when calling build methods on builder instances.BeanInstantiator.Builder.cached()Enables caching mode.BeanInstantiator.Builder.copy()Returns a copy of this builder with the same configuration.BeanInstantiator.Builder.debug()Enables debug mode to track the bean creation process.BeanInstantiator.Builder.description(String value) Sets a human-readable description used in log entries and error messages.BeanInstantiator.Builder.factoryAbstainOnNull()Treat anullreturn value from a static factory method as a deliberate "abstain" signal.BeanInstantiator.Builder.factoryMethodNames(String... names) Specifies custom static factory method names to look for when creating the bean.Specifies a fallback supplier to use if bean creation fails.Specifies an existing bean implementation to use instead of creating a new instance.BeanInstantiator.Builder.injectBuilder()Enables@Inject/@Autowiredfield and method injection on the builder instance.BeanInstantiator.Builder.noBuilder()Disables builder-based bean creation entirely.static <T> BeanInstantiator.Builder<T>Creates a new bean creator builder.static <T> BeanInstantiator.Builder<T>Creates a new bean creator builder with a parent bean store.static <T> BeanInstantiator.Builder<T>BeanInstantiator.of(Class<T> beanType, BeanStore parentStore, String name, Object enclosingInstance) Creates a new bean creator builder with a parent bean store, name, and enclosing instance.BeanInstantiator.Builder.or(BeanInstantiator.Builder<? extends T> alternative) Registers an alternativeBeanInstantiator.Builderto consult if this builder fails to create the bean.BeanInstantiator.Builder.postCreateHook(Consumer<T> hook) Registers a post-creation hook to run after the bean is created.BeanInstantiator.Builder.preferZeroArgConstructor()Prefer a zero-argument constructor when one exists, instead of injecting via the longest constructor.BeanInstantiator.Builder.reset()Resets the builder, builderType, and beanImpl suppliers.BeanInstantiator.Builder.scope(BeanInstantiator.Scope value) Sets the lifecycle scope of the bean being created.BeanInstantiator.Builder.silent()Suppresses warning-level log output from this builder.Specifies a subclass of the bean type to create.Specifies a subclass of the bean type to create, via aClassInforeference.Registers a post-creation validator.BeanInstantiator.Builder.wrap(UnaryOperator<T> wrapper) Registers a transformation to apply to the created bean before it is returned.Methods in org.apache.juneau.commons.inject with parameters of type BeanInstantiator.BuilderModifier and TypeMethodDescriptionBeanInstantiator.Builder.or(BeanInstantiator.Builder<? extends T> alternative) Registers an alternativeBeanInstantiator.Builderto consult if this builder fails to create the bean. -
Uses of BeanInstantiator.Builder in org.apache.juneau.rest.client.classic
Methods in org.apache.juneau.rest.client.classic that return BeanInstantiator.BuilderModifier and TypeMethodDescriptionRestClient.Builder.callHandler()Returns the creator for the rest call handler.protected BeanInstantiator.Builder<RestCallHandler>RestClient.Builder.createCallHandler()Creates the creator for the rest call handler.