Uses of Class
org.jboss.weld.junit.MockBean.Builder
-
Uses of MockBean.Builder in org.jboss.weld.junit
Methods in org.jboss.weld.junit that return MockBean.BuilderModifier and TypeMethodDescriptionMockBean.Builder.addQualifier(Annotation qualifier) MockBean.Builder.addStereotype(Class<? extends Annotation> stereotype) MockBean.Builder.alternative(boolean value) static <T> MockBean.Builder<T>MockBean.builder()MockBean.Builder.create(MockBean.CreateFunction<T> callback) Each invocation ofContextual.create(CreationalContext)will return the same instance.MockBean.Builder.destroy(MockBean.DestroyFunction<T> callback) MockBean.Builder.globallySelectedAlternative(int priority) This beans is a globally enabled alternative with a priority equal to its method parameter.MockBean.Builder.priority(int priority) Programmatic equivalent to to puttingPriorityannotation on a bean class.MockBean.Builder.qualifiers(Annotation... qualifiers) static <T> MockBean.Builder<T>A convenient method to create aMockBean.Builderinitialized from the specified bean class.MockBean.Builder.scope(Class<? extends Annotation> scope) MockBean.Builder.selectedAlternative()The bean is an alternative and should be automatically selected for the synthetic bean archive.MockBean.Builder.selectedAlternative(Class<?> beanClass) The bean has the given bean class, is an alternative and should be automatically selected for the synthetic bean archive.MockBean.Builder.stereotypes(Class<? extends Annotation>... stereotypes) MockBean.Builder.useUnmanaged(Class<T> beanClass) UseUnmanagedto create/destroy the bean instance.