Uses of Annotation Interface
org.springframework.lang.Contract
Package
Description
Support for AOP-based scoping of target objects, with configurable backend.
Convenience classes for using Spring's AOP API.
Support package for annotation-driven bean configuration.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Type conversion system API.
SpEL's central implementation package.
General utility classes for use in unit and integration tests.
Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
-
Uses of Contract in org.springframework.aop.scope
Modifier and TypeMethodDescriptionstatic boolean
ScopedProxyUtils.isScopedTarget
(String beanName) Determine if thebeanName
is the name of a bean that references the target bean within a scoped proxy. -
Uses of Contract in org.springframework.aop.support
Modifier and TypeMethodDescriptionstatic boolean
AopUtils.isAopProxy
(Object object) Check whether the given object is a JDK dynamic proxy or a CGLIB proxy.static boolean
AopUtils.isCglibProxy
(Object object) Check whether the given object is a CGLIB proxy.static boolean
AopUtils.isJdkDynamicProxy
(Object object) Check whether the given object is a JDK dynamic proxy. -
Uses of Contract in org.springframework.beans.factory.annotation
Modifier and TypeMethodDescriptionstatic boolean
InjectionMetadata.needsRefresh
(InjectionMetadata metadata, Class<?> clazz) Check whether the given injection metadata needs to be refreshed. -
Uses of Contract in org.springframework.core.annotation
-
Uses of Contract in org.springframework.core.convert
Modifier and TypeMethodDescriptionstatic TypeDescriptor
TypeDescriptor.array
(TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.static TypeDescriptor
Create a new type descriptor for an object. -
Uses of Contract in org.springframework.expression.spel
Modifier and TypeMethodDescriptionstatic boolean
CodeFlow.isBooleanCompatible
(String descriptor) Determine whether the descriptor is for a boolean primitive or boolean reference type.static boolean
CodeFlow.isIntegerForNumericOp
(Number number) Determine whether the given number is to be considered as an integer for the purposes of a numeric operation at the bytecode level.static boolean
CodeFlow.isPrimitive
(String descriptor) Determine whether the descriptor is for a primitive type orvoid
.static boolean
CodeFlow.isPrimitiveArray
(String descriptor) Determine whether the descriptor is for a primitive array (for example, "[[I").static boolean
CodeFlow.isPrimitiveOrUnboxableSupportedNumber
(String descriptor) Determine if the supplied descriptor is for a supported number.static boolean
CodeFlow.isPrimitiveOrUnboxableSupportedNumberOrBoolean
(String descriptor) Determine if the supplied descriptor is for a supported number type or boolean. -
Uses of Contract in org.springframework.test.util
Modifier and TypeMethodDescriptionstatic void
AssertionErrors.assertFalse
(String message, boolean condition) Assert the given condition isfalse
and raise anAssertionError
otherwise.static void
AssertionErrors.assertNotNull
(String message, Object object) Assert that the given object is notnull
and raise anAssertionError
otherwise.static void
AssertionErrors.assertNull
(String message, Object object) Assert that the given object isnull
and raise anAssertionError
otherwise.static void
AssertionErrors.assertTrue
(String message, boolean condition) Assert the given condition istrue
and raise anAssertionError
otherwise.static void
Fail a test with the given message. -
Uses of Contract in org.springframework.util
Modifier and TypeMethodDescriptionstatic int
StreamUtils.drain
(InputStream in) Drain the remaining content of the given InputStream.static void
Assert that the given String is not empty; that is, it must not benull
and not the empty String.static void
Assert that the given String is not empty; that is, it must not benull
and not the empty String.static boolean
StringUtils.hasLength
(CharSequence str) Check that the givenCharSequence
is neithernull
nor of length 0.static boolean
Check that the givenString
is neithernull
nor of length 0.static void
Assert that the given String contains valid text content; that is, it must not benull
and must contain at least one non-whitespace character.static void
Assert that the given String contains valid text content; that is, it must not benull
and must contain at least one non-whitespace character.static boolean
StringUtils.hasText
(CharSequence str) Check whether the givenCharSequence
contains actual text.static boolean
Check whether the givenString
contains actual text.static boolean
Determine whether the given object is an array: either an Object array or a primitive array.static void
Assert.isAssignable
(Class<?> superType, Class<?> subType) Assert thatsuperType.isAssignableFrom(subType)
istrue
.static void
Assert.isAssignable
(Class<?> superType, Class<?> subType, String message) Assert thatsuperType.isAssignableFrom(subType)
istrue
.static void
Assert.isAssignable
(Class<?> superType, Class<?> subType, Supplier<String> messageSupplier) Assert thatsuperType.isAssignableFrom(subType)
istrue
.static boolean
CollectionUtils.isEmpty
(Collection<?> collection) Returntrue
if the supplied Collection isnull
or empty.static boolean
Returntrue
if the supplied Map isnull
or empty.static boolean
Determine whether the given object is empty.static boolean
Determine whether the given array is empty: i.e.static void
Assert.isInstanceOf
(Class<?> type, Object obj) Assert that the provided object is an instance of the provided class.static void
Assert.isInstanceOf
(Class<?> type, Object obj, String message) Assert that the provided object is an instance of the provided class.static void
Assert.isInstanceOf
(Class<?> type, Object obj, Supplier<String> messageSupplier) Assert that the provided object is an instance of the provided class.static void
Assert that an object isnull
.static void
Assert that an object isnull
.static void
Assert a boolean expression, throwing anIllegalArgumentException
if the expression evaluates tofalse
.static void
Assert a boolean expression, throwing anIllegalArgumentException
if the expression evaluates tofalse
.static void
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert.notEmpty
(Collection<?> collection, String message) Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert.notEmpty
(Collection<?> collection, Supplier<String> messageSupplier) Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert that an object is notnull
.static void
Assert that an object is notnull
.static boolean
ObjectUtils.nullSafeEquals
(Object o1, Object o2) Determine if the given objects are equal, returningtrue
if both arenull
orfalse
if only one isnull
.static void
Assert a boolean expression, throwing anIllegalStateException
if the expression evaluates tofalse
.static void
Assert a boolean expression, throwing anIllegalStateException
if the expression evaluates tofalse
.