Uses of Class
net.odoframework.container.injection.BeanDefinition
| Package | Description |
|---|---|
| net.odoframework.container | |
| net.odoframework.container.injection |
-
Uses of BeanDefinition in net.odoframework.container
Methods in net.odoframework.container that return BeanDefinition Modifier and Type Method Description <T> BeanDefinition<T>ModuleBuilder. provides(Class<T> type)Creates an instance of aBeanDefinitionclass which has the name of the passed type<T> BeanDefinition<T>ModuleBuilder. provides(String name)Creates an instance of aBeanDefinitionclass which has the name of the parameterMethods in net.odoframework.container with parameters of type BeanDefinition Modifier and Type Method Description <T extends Runnable>
ModuleBuilderModuleBuilder. addStartupBean(BeanDefinition<T> bean)This is used to register a bean which must be run when all the modules have been loadedprotected ModuleBuilderModuleBuilder. register(BeanDefinition<?> beanDefinition)Register an instance of aBeanDefinitionto be loaded as part of the container<K, T extends Consumer<K>>
ModuleBuilderModuleBuilder. registerEventHandler(Class<K> eventType, BeanDefinition<T> beanDefinition)Registered an Event handler -
Uses of BeanDefinition in net.odoframework.container.injection
Methods in net.odoframework.container.injection that return BeanDefinition Modifier and Type Method Description <Z extends T>
BeanDefinition<T>BeanDefinition. after(BiConsumer<Z,ContainerWrapper> consumer)static <T> BeanDefinition<T>BeanDefinition. bean(Class<T> type)static <T> BeanDefinition<T>BeanDefinition. bean(String name)BeanDefinition<T>BeanDefinition. condition(Predicate<Container> condition)BeanDefinition<T>BeanDefinition. initWith(BiConsumer<ContainerWrapper,T> initializer)BeanDefinition<T>BeanDefinition. prototype()BeanDefinition<T>BeanDefinition. register(Container container)<K> BeanDefinition<T>BeanDefinition. set(Class<K> type, BiConsumer<T,K> consumer)<K> BeanDefinition<T>BeanDefinition. set(String name, BiConsumer<T,K> consumer)<K> BeanDefinition<T>BeanDefinition. set(Ref<K> ref, BiConsumer<T,K> consumer)BeanDefinition<T>BeanDefinition. singleton()BeanDefinition<T>BeanDefinition. transactional()BeanDefinition<T>BeanDefinition. with(Class<T> type)BeanDefinition<T>BeanDefinition. with(Function<ContainerWrapper,T> constructor)BeanDefinition<T>BeanDefinition. with(Supplier<T> supplier)Methods in net.odoframework.container.injection with parameters of type BeanDefinition Modifier and Type Method Description ContainerContainer. register(BeanDefinition<?> beanDefinition)<T extends Consumer<?>>
ContainerContainer. registerEventHandler(Class<?> eventType, BeanDefinition<T> beanDefinition)