Uses of Class
io.microsphere.annotation.Nullable
-
-
Uses of Nullable in io.microsphere.beans
Methods in io.microsphere.beans with annotations of type Nullable Modifier and Type Method Description java.lang.Object
BeanProperty. getValue()
-
Uses of Nullable in io.microsphere.classloading
Methods in io.microsphere.classloading with annotations of type Nullable Modifier and Type Method Description java.net.URL
Artifact. getLocation()
Get the location of artifact resourcejava.lang.String
Artifact. getVersion()
Get the versionprotected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromArchiveFile(java.io.File archiveFile)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromDirectory(java.io.File directory)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromFile(java.io.File archiveFile)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromResource(java.net.URL resourceURL, java.lang.ClassLoader classLoader)
Artifact
ArtifactResourceResolver. resolve(java.net.URL resourceURL)
Resolve an instanceArtifact
fromthe resource
of artifact.Method parameters in io.microsphere.classloading with annotations of type Nullable Modifier and Type Method Description static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
default java.net.URL[]
URLClassPathHandle. getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
default boolean
URLClassPathHandle. initializeLoaders(java.lang.ClassLoader classLoader)
Initialize the loaders of URL Class-Path fromURLClassLoader
boolean
URLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
boolean
URLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
Artifact
ArtifactResourceResolver. resolve(java.net.URL resourceURL)
Resolve an instanceArtifact
fromthe resource
of artifact.Constructor parameters in io.microsphere.classloading with annotations of type Nullable Constructor Description Artifact(java.lang.String artifactId, java.lang.String version, java.net.URL location)
Artifact(java.lang.String artifactId, java.lang.String version, java.net.URL location)
ArtifactDetector(java.lang.ClassLoader classLoader)
BannedArtifactClassLoadingExecutor(java.lang.ClassLoader classLoader)
MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
-
Uses of Nullable in io.microsphere.collection
Methods in io.microsphere.collection with annotations of type Nullable Modifier and Type Method Description static <T> T
CollectionUtils. first(java.lang.Iterable<T> values)
Take the first element from the specifiedIterable
static <T> T
CollectionUtils. first(java.util.Collection<T> values)
Take the first element from the specified collectionstatic <T> T
CollectionUtils. first(java.util.Iterator<T> values)
Take the first element from the specifiedstatic <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Collection<E> collection)
Method parameters in io.microsphere.collection with annotations of type Nullable Modifier and Type Method Description static <T> int
CollectionUtils. addAll(java.util.Collection<T> collection, T... values)
Add the multiple values intothe specified collection
static boolean
CollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)
Compares the specified collection with another, the main implementation referencesAbstractSet
static boolean
CollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)
Compares the specified collection with another, the main implementation referencesAbstractSet
static <T> T
CollectionUtils. first(java.lang.Iterable<T> values)
Take the first element from the specifiedIterable
static <T> T
CollectionUtils. first(java.util.Collection<T> values)
Take the first element from the specified collectionstatic <T> T
CollectionUtils. first(java.util.Iterator<T> values)
Take the first element from the specifiedstatic boolean
CollectionUtils. isEmpty(java.util.Collection<?> collection)
static boolean
CollectionUtils. isNotEmpty(java.util.Collection<?> collection)
static boolean
SetUtils. isSet(java.lang.Iterable<?> elements)
static <E> java.util.Enumeration<E>
CollectionUtils. singletonEnumeration(E element)
static <E> java.lang.Iterable<E>
CollectionUtils. singletonIterable(E element)
static <E> java.util.Iterator<E>
CollectionUtils. singletonIterator(E element)
static int
CollectionUtils. size(java.lang.Iterable<?> iterable)
Get the size of the specifiedIterable
static int
CollectionUtils. size(java.util.Collection<?> collection)
Get the size of the specifiedCollection
static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Collection<E> collection)
static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Enumeration<E> enumeration)
static <E> java.util.Iterator<E>
CollectionUtils. toIterator(java.util.Enumeration<E> enumeration)
static <E> java.util.Iterator<E>
CollectionUtils. unmodifiableIterator(java.util.Iterator<E> iterator)
-
Uses of Nullable in io.microsphere.convert
Methods in io.microsphere.convert with annotations of type Nullable Modifier and Type Method Description T
AbstractConverter. convert(S source)
T
Converter. convert(S source)
Convert the source-typed value to the target-typed valueprotected abstract T
AbstractConverter. doConvert(S source)
Converts the non-null source-typed value to the target-typed value.Method parameters in io.microsphere.convert with annotations of type Nullable Modifier and Type Method Description T
AbstractConverter. convert(S source)
T
Converter. convert(S source)
Convert the source-typed value to the target-typed value -
Uses of Nullable in io.microsphere.lang
Methods in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description java.lang.String
ClassDataRepository. findClassPath(java.lang.Class<?> type)
Find class path under specified class namejava.lang.String
ClassDataRepository. findClassPath(java.lang.String className)
Find class path under specified class namejava.lang.String
Deprecation. getLink()
java.lang.String
Deprecation. getReason()
java.lang.String
Deprecation. getReplacement()
Version
Deprecation. getSince()
Method parameters in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description Deprecation.Builder
Deprecation.Builder. level(Deprecation.Level level)
Deprecation.Builder
Deprecation.Builder. link(java.lang.String link)
Deprecation.Builder
Deprecation.Builder. reason(java.lang.String reason)
Deprecation.Builder
Deprecation.Builder. replacement(java.lang.String replacement)
Deprecation.Builder
Deprecation.Builder. since(Version since)
Deprecation.Builder
Deprecation.Builder. since(java.lang.String since)
-
Uses of Nullable in io.microsphere.management
Methods in io.microsphere.management with annotations of type Nullable Modifier and Type Method Description static java.util.Optional<java.lang.management.CompilationMXBean>
JmxUtils. getCompilationMXBean()
Returns the managed bean for the compilation system of the Java virtual machine.Method parameters in io.microsphere.management with annotations of type Nullable Modifier and Type Method Description protected static java.lang.Object
JmxUtils. doGetAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo, java.lang.String attributeName)
Constructor parameters in io.microsphere.management with annotations of type Nullable Constructor Description MBeanAttribute(javax.management.MBeanInfo declaringMBeanInfo, javax.management.MBeanAttributeInfo attributeInfo, java.lang.Object value)
-
Uses of Nullable in io.microsphere.reflect
Fields in io.microsphere.reflect with annotations of type Nullable Modifier and Type Field Description protected Deprecation
ReflectiveDefinition. deprecation
static java.lang.Class<? extends java.lang.Throwable>
ReflectionUtils. INACCESSIBLE_OBJECT_EXCEPTION_CLASS
Theclass
of java.lang.reflect.InaccessibleObjectException since JDK 9.Methods in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description JavaType
JavaType. as(java.lang.Class<?> targetClass)
Get the JavaType presenting the target classjava.lang.Class<?>
MemberDefinition. getDeclaredClass()
Get the declared classDeprecation
ReflectiveDefinition. getDeprecation()
Get the deprecationM
MemberDefinition. getMember()
Get the member instancejava.lang.reflect.Method
MethodDefinition. getMethod()
The resolved methodjava.lang.reflect.Type
JavaType. getRawType()
java.lang.Class<?>
ReflectiveDefinition. getResolvedClass()
Get the resolved classjava.lang.reflect.Field
FieldDefinition. getResolvedField()
JavaType
JavaType. getRootSource()
JavaType
JavaType. getSource()
JavaType
JavaType. getSuperType()
<T> java.lang.Class<T>
JavaType. toClass()
java.lang.reflect.GenericArrayType
JavaType. toGenericArrayType()
java.lang.reflect.ParameterizedType
JavaType. toParameterizedType()
java.lang.reflect.TypeVariable
JavaType. toTypeVariable()
java.lang.reflect.WildcardType
JavaType. toWildcardType()
Method parameters in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description static java.lang.String
TypeUtils. getTypeName(java.lang.reflect.Type type)
Get the type name safelystatic java.lang.String[]
TypeUtils. getTypeNames(java.lang.reflect.Type... types)
Get the type names of the specifiedtypes
static <R> R
MethodUtils. invokeMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object... arguments)
Invokes the underlying method represented by thisMethod
object, on the specified object with the specified parameters.Constructor parameters in io.microsphere.reflect with annotations of type Nullable Constructor Description ClassDefinition(Version since, Deprecation deprecation, java.lang.String className)
ClassDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
FieldDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
MemberDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
ReflectiveDefinition(Version since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
-
Uses of Nullable in io.microsphere.util
Fields in io.microsphere.util with annotations of type Nullable Modifier and Type Field Description static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_CLASS
TheClass
of java.lang.StackWalker that was introduced in JDK 9.static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_OPTION_CLASS
TheClass
of java.lang.StackWalker.Option that was introduced in JDK 9.static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_STACK_FRAME_CLASS
TheClass
of java.lang.StackWalker.StackFrame that was introduced in JDK 9.Methods in io.microsphere.util with annotations of type Nullable Modifier and Type Method Description static java.net.URLClassLoader
ClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)
R
Compatible. get()
static java.lang.ClassLoader
ClassLoaderUtils. getCallerClassLoader()
Return the ClassLoader from the caller classstatic java.lang.ClassLoader
ClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)
Get the ClassLoader from the loaded class if present.static java.lang.ClassLoader
ClassLoaderUtils. getDefaultClassLoader()
Get the default the ClassLoader to use.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loaded specified class name underClassLoader
static java.lang.String
ClassUtils. resolvePackageName(java.lang.Class<?> targetClass)
Resolve package name under specified classstatic java.lang.String
ClassUtils. resolvePackageName(java.lang.String className)
Resolve package name under specified class nameMethod parameters in io.microsphere.util with annotations of type Nullable Modifier and Type Method Description static void
Assert. assertNoNullElements(java.lang.Iterable<?> elements, java.lang.String message)
Assert that a elements contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Iterable<?> elements, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a elements contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Object[] array, java.lang.String message)
Assert that an array contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an array contains nonull
elements.static void
Assert. assertNotBlank(java.lang.String text, java.lang.String message)
Assert that a string is not blank.static void
Assert. assertNotBlank(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a string is not blank.static void
Assert. assertNotEmpty(java.lang.Object[] array, java.lang.String message)
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.lang.String text, java.lang.String message)
Assert that a string is not empty ("").static void
Assert. assertNotEmpty(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a string is not empty ("").static void
Assert. assertNotEmpty(java.util.Collection<?> collection, java.lang.String message)
Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.util.Collection<?> collection, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.util.Map<?,?> map, java.lang.String message)
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert. assertNotEmpty(java.util.Map<?,?> map, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert. assertNotNull(java.lang.Object object, java.lang.String message)
Assert that an object is notnull
.static void
Assert. assertNotNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an object is notnull
.static void
Assert. assertNull(java.lang.Object object, java.lang.String message)
Assert that an object isnull
.static void
Assert. assertNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an object isnull
.static java.util.Set<java.net.URL>
ClassLoaderUtils. findAllClassPathURLs(java.lang.ClassLoader classLoader)
static java.lang.Class<?>
ClassLoaderUtils. findLoadedClass(java.lang.ClassLoader classLoader, java.lang.String className)
Find LoadedClass
under specified inheritableClassLoader
static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClasses(java.lang.ClassLoader classLoader, java.lang.Iterable<java.lang.String> classNames)
Find LoadedClass
under specified inheritableClassLoader
and class namesstatic java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClasses(java.lang.ClassLoader classLoader, java.lang.String... classNames)
Find LoadedClass
under specified inheritableClassLoader
and class namesstatic java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPath(java.lang.ClassLoader classLoader)
Find loaded classesSet
in class pathstatic java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPath(java.lang.ClassLoader classLoader, java.lang.String classPath)
Find loaded classesSet
in class pathstatic java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPaths(java.lang.ClassLoader classLoader, java.util.Set<java.lang.String> classPaths)
Find loaded classesSet
in class pathsSet
static java.net.URLClassLoader
ClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)
static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. getAllLoadedClasses(java.lang.ClassLoader classLoader)
Get all loaded classesSet
under specified inheritableClassLoader
static java.util.Map<java.lang.ClassLoader,java.util.Set<java.lang.Class<?>>>
ClassLoaderUtils. getAllLoadedClassesMap(java.lang.ClassLoader classLoader)
Get all loaded classesMap
under specified inheritableClassLoader
,ClassLoader
as key , its loaded classesSet
as value.static java.lang.ClassLoader
ClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)
Get the ClassLoader from the loaded class if present.static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.Class<?> type)
Get theClass
resource URL under specifiedClass
static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.String className)
Get theClass
resource URL under specifiedClass name
static java.util.Set<java.lang.ClassLoader>
ClassLoaderUtils. getInheritableClassLoaders(java.lang.ClassLoader classLoader)
Get all InheritableClassLoaders
Set
(includingClassLoader
argument)static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. getLoadedClasses(java.lang.ClassLoader classLoader)
Get loaded classesSet
under specifiedClassLoader
( not all inheritableClassLoaders
)static java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, ClassLoaderUtils.ResourceType resourceType, java.lang.String resourceName)
Get the resource URL under specified resource name and typestatic java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Get the resource URL under specified resource namestatic java.lang.String
ClassLoaderUtils. getResourceAsString(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Get the content of the specified resource as a String.static java.util.Set<java.net.URL>
ClassLoaderUtils. getResources(java.lang.ClassLoader classLoader, ClassLoaderUtils.ResourceType resourceType, java.lang.String resourceName)
Get the resource URLs Set under specified resource name and typestatic java.util.Set<java.net.URL>
ClassLoaderUtils. getResources(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Get the resource URLs list under specified resource namestatic boolean
ClassLoaderUtils. isLoadedClass(java.lang.ClassLoader classLoader, java.lang.Class<?> type)
Check specifiedClass
is loaded on specified inheritableClassLoader
static boolean
ClassLoaderUtils. isLoadedClass(java.lang.ClassLoader classLoader, java.lang.String className)
Check specifiedclass name
is loaded on specified inheritableClassLoader
static boolean
ClassLoaderUtils. isPresent(java.lang.String className)
Test the specified class name is present in thedefault ClassLoader
static boolean
ClassLoaderUtils. isPresent(java.lang.String className, java.lang.ClassLoader classLoader)
Test the specified class name is present in theClassLoader
static boolean
ClassLoaderUtils. isPresent(java.lang.String className, java.lang.ClassLoader classLoader)
Test the specified class name is present in theClassLoader
static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loaded specified class name underClassLoader
static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loaded specified class name underClassLoader
static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className, boolean cached)
Loaded specified class name underClassLoader
static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className, boolean cached)
Loaded specified class name underClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls, java.lang.ClassLoader classLoader)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean initializedLoaders)
Create a new instance ofURLClassLoader
static boolean
ClassLoaderUtils. removeClassPathURL(java.lang.ClassLoader classLoader, java.net.URL url)
static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className)
Resolve theClass
by the specified name in thedefault ClassLoader
static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader)
Resolve theClass
by the specified name andClassLoader
static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader)
Resolve theClass
by the specified name andClassLoader
static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader, boolean cached)
Resolve theClass
by the specified name andClassLoader
static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader, boolean cached)
Resolve theClass
by the specified name andClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. resolveURLClassLoader(java.lang.ClassLoader classLoader)
Try to find the instance ofURLClassLoader
from the specifiedClassLoader
, if it can't be found, it will try to find all theURL
of class-paths from the specifiedClassLoader
, and then new a instance ofURLClassLoader
upon those urls.
-