Package com.coditory.quark.context
Class ContextBuilder
java.lang.Object
com.coditory.quark.context.ContextBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @NotNull ContextBuilder
add
(@NotNull Class<T> type, @NotNull BeanCreator<T> beanCreator) <T> @NotNull ContextBuilder
add
(@NotNull Class<T> type, @NotNull String name, @NotNull BeanCreator<T> beanCreator) <T> @NotNull ContextBuilder
add
(@NotNull Class<T> type, @NotNull Predicate<com.coditory.quark.context.ConditionContext> condition, @NotNull BeanCreator<T> beanCreator) <T> @NotNull ContextBuilder
add
(@NotNull Class<T> type, String name, @NotNull Predicate<com.coditory.quark.context.ConditionContext> condition, @NotNull BeanCreator<T> beanCreator) <T> @NotNull ContextBuilder
add
(T bean) <T> @NotNull ContextBuilder
@NotNull Context
build()
@NotNull Context
@NotNull ContextBuilder
@NotNull ContextBuilder
registerConfigurationBeans
(boolean register) @NotNull ContextBuilder
@NotNull ContextBuilder
registerContextEventBus
(boolean register) <T> @NotNull ContextBuilder
@NotNull ContextBuilder
scanPackage
(@NotNull Class<?> type) @NotNull ContextBuilder
scanPackage
(@NotNull Class<?> type, @NotNull Predicate<String> canonicalNameFilter) @NotNull ContextBuilder
scanPackage
(@NotNull String packageName) @NotNull ContextBuilder
scanPackage
(@NotNull String packageName, @NotNull Predicate<String> canonicalNameFilter) @NotNull ContextBuilder
setClassLoader
(@NotNull ClassLoader classLoader) @NotNull ContextBuilder
setEventBusExceptionHandler
(@NotNull com.coditory.quark.eventbus.DispatchExceptionHandler exceptionHandler) @NotNull ContextBuilder
@NotNull ContextBuilder
setProperties
(@NotNull Map<String, Object> properties) @NotNull ContextBuilder
setProperty
(@NotNull String name, Object value) @NotNull ContextBuilder
subscribe
(@NotNull com.coditory.quark.eventbus.Subscription<?> listener) <T> @NotNull ContextBuilder
subscribe
(@NotNull Class<? extends T> eventType, @NotNull com.coditory.quark.eventbus.EventListener<T> listener) @NotNull ContextBuilder
@NotNull ContextBuilder
subscribeContextEventHandlers
(boolean subscribe) @NotNull ContextBuilder
warnAboutSlowBeanCreation
(@NotNull Duration duration) @NotNull ContextBuilder
warnAboutSlowBeanCreationWithDependencies
(@NotNull Duration duration)
-
Field Details
-
CONTEXT_EVENT_BUS_NAME
- See Also:
-
-
Constructor Details
-
ContextBuilder
public ContextBuilder()
-
-
Method Details
-
setName
-
registerContextEventBus
-
registerContextEventBus
-
subscribeContextEventHandlers
-
setEventBusExceptionHandler
@NotNull public @NotNull ContextBuilder setEventBusExceptionHandler(@NotNull @NotNull com.coditory.quark.eventbus.DispatchExceptionHandler exceptionHandler) -
setClassLoader
-
registerConfigurationBeans
-
registerConfigurationBeans
-
subscribe
@NotNull public @NotNull ContextBuilder subscribe(@NotNull @NotNull com.coditory.quark.eventbus.Subscription<?> listener) -
subscribe
-
subscribe
@NotNull public <T> @NotNull ContextBuilder subscribe(@NotNull @NotNull Class<? extends T> eventType, @NotNull @NotNull com.coditory.quark.eventbus.EventListener<T> listener) -
warnAboutSlowBeanCreation
@NotNull public @NotNull ContextBuilder warnAboutSlowBeanCreation(@NotNull @NotNull Duration duration) -
warnAboutSlowBeanCreationWithDependencies
@NotNull public @NotNull ContextBuilder warnAboutSlowBeanCreationWithDependencies(@NotNull @NotNull Duration duration) -
scanPackage
-
scanPackage
@NotNull public @NotNull ContextBuilder scanPackage(@NotNull @NotNull Class<?> type, @NotNull @NotNull Predicate<String> canonicalNameFilter) -
scanPackage
-
scanPackage
@NotNull public @NotNull ContextBuilder scanPackage(@NotNull @NotNull String packageName, @NotNull @NotNull Predicate<String> canonicalNameFilter) -
scanClass
-
setProperty
-
setProperties
@NotNull public @NotNull ContextBuilder setProperties(@NotNull @NotNull Map<String, Object> properties) -
add
-
add
-
add
@NotNull public <T> @NotNull ContextBuilder add(@NotNull @NotNull Class<T> type, @NotNull @NotNull Predicate<com.coditory.quark.context.ConditionContext> condition, @NotNull @NotNull BeanCreator<T> beanCreator) -
add
@NotNull public <T> @NotNull ContextBuilder add(@NotNull @NotNull Class<T> type, String name, @NotNull @NotNull Predicate<com.coditory.quark.context.ConditionContext> condition, @NotNull @NotNull BeanCreator<T> beanCreator) -
add
@NotNull public <T> @NotNull ContextBuilder add(@NotNull @NotNull Class<T> type, @NotNull @NotNull BeanCreator<T> beanCreator) -
add
@NotNull public <T> @NotNull ContextBuilder add(@NotNull @NotNull Class<T> type, @NotNull @NotNull String name, @NotNull @NotNull BeanCreator<T> beanCreator) -
buildEager
-
build
-