Package org.apache.openjpa.lib.util
package org.apache.openjpa.lib.util
General Utilities
-
ClassDescriptionBase 16 encoder.This class came from the Apache Commons Id sandbox project in support of the UUIDGenerator implementation.Various helper methods to deal with ClassesGeneric interface for components that can be cleared so that helpers can treat them in a generic way.Generic interface for components that can be closed so that helpers can treate them in a generic way.Encapsulates some common Java source code formatting options.Basic event manager interface.Utility operations on files.A specialization of
Properties
that stores its contents in the same order and with the same formatting as was used to read the contents from an input stream.Helper class to obtain the Privilege(Exception)Action object to perform Java 2 doPrivilege security sensitive function call in the following methods: AccessibleObject.setAccessible Class.forName Class.getClassLoader Class.getDeclaredField Class.getDeclaredFields Class.getDeclaredMethod Class.getDeclaredMethods Class.getProtectionDomain Class.getResource Class.newInstance ClassLoader.getParent ClassLoader.getResource ClassLoader.getResources ClassLoader.getSystemClassLoader File.deleteOnExit File.delete File.exists File.getAbsoluteFile File.getAbsolutePath File.getCanonicalPath File.listFiles File.length File.isDirectory File.mkdirs File.renameTo File.toURL FileInputStream new FileOutputStream new System.getProperties InetAddress.getByName MultiClassLoader new ServerSocket new Socket new Socket.accept System.getProperty Thread.getContextClassLoader Thread.setContextClassLoader Thread new TemporaryClassLoader new URL.openStream URLConnection.getContent ZipFile new AnnotatedElement.getAnnotations AnnotatedElement.getDeclaredAnnotations AnnotatedElement.isAnnotationPresent jakarta.validation.Validator.validate jakarta.validation.Validation.buildDefaultValidatorFactory If these methods are used, the following sample usage patterns should be followed to ensure proper privilege is granted:Utilities for dealing with different Java vendors.Utilities for dealing with different Java specification versions.The Localizer provides convenient access to localized strings.AMessage
can provide a localized message via theLocalizer.Message.getMessage()
method call, and can also provide the original key, package, and substitution array that were used to assemble the message.Extension of the commonsLRUMap
that can change its maximum size.Class loader type that can be configured to delegate to multiple internal class loaders.A specialization of theProperties
map type with the added abilities to read application options from the command line and to use bean patterns to set an object's properties via command-line the stored mappings.OrderedMap<K,V> A Map with predictable iteration order.A template that allows parameter substitutions.Exception type for parse errors.Map in which the key, value, or both may be weak/soft references.A set whose values may be stored as weak or soft references.AMap
type that can hold its keys, values, or both with weak or soft references.Annotates a getter method or field soreflection utility
to control whether the annotated member is recorded during scanning for bean-style method or field.Utility classes to locate services, as defined in the Jar File Specification.Allows for simple regex style testing of strings.AMap
type that maintains a maximum size, automatically removing entries when the maximum is exceeded.Utilities for calculating string distance.ClassLoader implementation that allows classes to be temporarily loaded and then thrown away.Helper base class attempts to return java.sql.Timestamp object with nanosecond precision.A specialization of theProperties
map type with added convenience methods to retrieve and set options as primitive values.UUID value generator.