Uses of Interface
org.apache.juneau.commons.inject.WritableBeanStore
Packages that use WritableBeanStore
Package
Description
Lightweight bean lookup, contribution, and injection support for Juneau.
Simple Variable Language
Microservice API
Microservice API
Embedded Tomcat integration for Juneau microservices.
REST Server API
Built-in health, readiness, and liveness probe support for Juneau REST servers.
Spring Boot Integration
-
Uses of WritableBeanStore in org.apache.juneau.bct.junit
Classes in org.apache.juneau.bct.junit that implement WritableBeanStoreModifier and TypeClassDescriptionclassFluentBasicBeanStoresubclass for declaring test-time bean overrides.Methods in org.apache.juneau.bct.junit that return types with arguments of type WritableBeanStoreModifier and TypeMethodDescriptionJuneauBeanStoreExtension.getAttachedStore()Returns theattachedbean store, or empty if none.Methods in org.apache.juneau.bct.junit with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionJuneauBeanStoreExtension.attach(WritableBeanStore store) Points this extension at a long-lived SUT'sWritableBeanStorefor Mode OVERLAY push/pop wiring. -
Uses of WritableBeanStore in org.apache.juneau.commons.inject
Classes in org.apache.juneau.commons.inject that implement WritableBeanStoreMethods in org.apache.juneau.commons.inject that return WritableBeanStoreModifier and TypeMethodDescriptionAdds an unnamed bean of the specified type to this store.Adds a named bean of the specified type to this store.BasicBeanStore.addBeanType(Class<T> beanType, Class<? extends T> implType) WritableBeanStore.addBeanType(Class<T> beanType, Class<? extends T> implType) Registers a default implementation class for the specified bean type.WritableBeanStore.addDefaultSupplier(Class<T> beanType, Supplier<T> supplier) Adds a fallback supplier for an unnamed bean of the specified type to this store.WritableBeanStore.addDefaultSupplier(Class<T> beanType, Supplier<T> supplier, String name) Adds a fallback supplier for a named bean of the specified type to this store.WritableBeanStore.addSupplier(Class<T> beanType, Supplier<T> supplier) Adds a supplier for an unnamed bean of the specified type to this store.WritableBeanStore.addSupplier(Class<T> beanType, Supplier<T> supplier, String name) Adds a supplier for a named bean of the specified type to this store.WritableBeanStore.clear()Removes all beans from this store.BasicBeanStore.registerConfiguration(Class<?> configType) WritableBeanStore.registerConfiguration(Class<?> configType) Registers a configuration class and itsBean-annotated members.default WritableBeanStoreWritableBeanStore.registerConfigurations(Class<?>... configTypes) Registers multiple configuration classes. -
Uses of WritableBeanStore in org.apache.juneau.commons.svl
Methods in org.apache.juneau.commons.svl that return WritableBeanStoreModifier and TypeMethodDescriptionVarResolver.Builder.beanStore()Returns the bean store used by this builder.Methods in org.apache.juneau.commons.svl with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionVarResolver.createSession(WritableBeanStore beanStore) Same asVarResolver.createSession()except allows you to specify a bean store for resolving beans.Constructors in org.apache.juneau.commons.svl with parameters of type WritableBeanStoreModifierConstructorDescriptionVarResolverSession(VarResolver context, WritableBeanStore beanStore) Constructor. -
Uses of WritableBeanStore in org.apache.juneau.microservice
Methods in org.apache.juneau.microservice that return WritableBeanStoreModifier and TypeMethodDescriptionMicroservice.getBeanStore()Returns the internalWritableBeanStorethat backs this microservice's inject-aware bootstrap.Methods in org.apache.juneau.microservice with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionMicroservice.Builder.beanStore(WritableBeanStore beanStore) Specifies an externalWritableBeanStoreto use instead of constructing a fresh one. -
Uses of WritableBeanStore in org.apache.juneau.microservice.jetty
Methods in org.apache.juneau.microservice.jetty with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionstatic MicroserviceJettyMicroservice.run(String[] args, WritableBeanStore beanStore, boolean startConsole, Class<?>... configurations) Power-user form: boots a Jetty microservice with a caller-supplied bean store and configuration class list. -
Uses of WritableBeanStore in org.apache.juneau.microservice.tomcat
Methods in org.apache.juneau.microservice.tomcat with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionstatic MicroserviceTomcatMicroservice.run(String[] args, WritableBeanStore beanStore, boolean startConsole, Class<?>... configurations) Power-user form: boots a Tomcat microservice with a caller-supplied bean store and configuration class list. -
Uses of WritableBeanStore in org.apache.juneau.rest.server
Fields in org.apache.juneau.rest.server declared as WritableBeanStoreModifier and TypeFieldDescriptionprotected final WritableBeanStoreRestContext.beanStoreprotected final WritableBeanStoreRestContext.bootstrapBeanStoreprotected final WritableBeanStoreRestContext.inheritableBeanStoreMethods in org.apache.juneau.rest.server that return WritableBeanStoreModifier and TypeMethodDescriptionRestContext.getBeanStore()Returns the bean store associated with this context.RestOpSession.getBeanStore()Returns the bean store for this session.RestSession.getBeanStore()Returns the bean store of this call.RestContext.getBootstrapBeanStore()Returns the bootstrap bean store for this context.RestContext.getInheritableBeanStore()Returns the bean store that this resource exposes to its@Rest(children)sub-resources.Methods in org.apache.juneau.rest.server that return types with arguments of type WritableBeanStoreModifier and TypeMethodDescriptionRestContext.Args.beanStoreConfigurer()Returns the value of thebeanStoreConfigurerrecord component.Constructor parameters in org.apache.juneau.rest.server with type arguments of type WritableBeanStoreModifierConstructorDescriptionArgs(Class<?> resourceClass, RestContext parentContext, jakarta.servlet.ServletConfig servletConfig, Supplier<?> resource, String path, Consumer<WritableBeanStore> beanStoreConfigurer, BeanStore overridingParent, String[] paths, RestContext.ContextKind kind) Back-compatible constructor without therestBuildercomponent (defaults it tonull ).Args(Class<?> resourceClass, RestContext parentContext, jakarta.servlet.ServletConfig servletConfig, Supplier<?> resource, String path, Consumer<WritableBeanStore> beanStoreConfigurer, BeanStore overridingParent, String[] paths, RestContext.ContextKind kind, RestBuilder<?> restBuilder) Compact canonical constructor — null-coalesces optional fields and validates required ones. -
Uses of WritableBeanStore in org.apache.juneau.rest.server.health
Methods in org.apache.juneau.rest.server.health with parameters of type WritableBeanStoreModifier and TypeMethodDescriptionvoidHealthServlet.initReadinessState(WritableBeanStore beanStore) Registers the published readiness state (if any) into this resource's own bean store, soHealthAggregator.aggregate(org.apache.juneau.rest.server.RestContext, java.util.Map<java.lang.String, org.apache.juneau.rest.server.health.HealthIndicator>, org.apache.juneau.rest.server.health.HealthProbe, org.apache.juneau.rest.server.RestResponse)resolves the lifecycle-owned instance instead of falling back toReadinessState.shared(). -
Uses of WritableBeanStore in org.apache.juneau.rest.server.springboot
Classes in org.apache.juneau.rest.server.springboot that implement WritableBeanStoreModifier and TypeClassDescriptionclassA bean store that uses Spring bean resolution to find beans if they're not already in this store.Methods in org.apache.juneau.rest.server.springboot that return WritableBeanStoreModifier and TypeMethodDescriptionSpringRestServlet.createBeanStore(Optional<BeanStore> parent) Hook into Spring bean injection framework.