Class SpringBeanStore
java.lang.Object
org.apache.juneau.cp.BeanStore
org.apache.juneau.rest.springboot.SpringBeanStore
A bean store that uses Spring bean resolution to find beans if they're not already in this store.
 
See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.juneau.cp.BeanStoreBeanStore.Builder, BeanStore.Void
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionSpringBeanStore(Optional<org.springframework.context.ApplicationContext> appContext, Optional<BeanStore> parent, Object resource) Constructor.
- 
Method SummaryModifier and TypeMethodDescription<T> Optional<T>Returns the unnamed bean of the specified type.<T> Optional<T>Returns the named bean of the specified type.<T> Stream<BeanStoreEntry<T>>Returns all the beans in this store of the specified type.Methods inherited from class org.apache.juneau.cp.BeanStoreadd, add, addBean, addBean, addSupplier, addSupplier, clear, create, createBean, createEntry, createMethodFinder, createMethodFinder, createMethodFinder, getMissingParams, getParams, hasAllParams, hasBean, hasBean, of, of, removeBean, removeBean, toString
- 
Constructor Details- 
SpringBeanStorepublic SpringBeanStore(Optional<org.springframework.context.ApplicationContext> appContext, Optional<BeanStore> parent, Object resource) Constructor.- Parameters:
- appContext- The Spring application context used to resolve beans.
- parent- The parent REST object bean store. Can be- null .
- resource- The REST object. Can be- null .
 
 
- 
- 
Method Details- 
getBeanDescription copied from class:BeanStoreReturns the unnamed bean of the specified type.
- 
getBeanDescription copied from class:BeanStoreReturns the named bean of the specified type.
- 
streamDescription copied from class:BeanStoreReturns all the beans in this store of the specified type.Returns both named and unnamed beans. The results from the parent bean store are appended to the list of beans from this beans store. 
 
-