Package org.tentackle.common
package org.tentackle.common
Common classes for build- and runtime.
-
ClassDescriptionBase implementation for storing objects in a database.Annotation to mark an annotation to be processed during the analyze phase, i.e., by the analyze goal of the tentackle-maven-plugin.Annotation to express that the annotated class is an annotation processor.Binary<T extends Serializable>Datatype for storing an object in a database.
Uses Java Object Serialization (JOS) under the hood.Money value derived from BigDecimal.Annotation to express that the annotated class corresponds to a resource bundle.The resource bundle factory.Support to locate bundle services.Annotation to override a service on the module path from the classpath.Bundle for the common package in tentackle-common.Some handy static null-safe methods to compare twoComparables.Class holding constants for build- and runtime.A simple en- and decryptor.
Each application should provide a concrete subclass with a confidential salt and passphrase and a no-arg constructor.Date with database semantics.Some common methods for date- and time-related types based onDate.Default implementation of a bundle factory.Default implementation of anObjectSerializerbased on Java Object Serialization.Default implementation of aServiceFinder.The default normalizer (works sufficiently for most Western languages).A DMoney is the same as a BMoney but will be treated differently when stored in the database.
A BMoney is stored as a DOUBLE for the value and an INTEGER for the scale.EncryptedProperties.
If a value starts with a~(tilde), the remainder of the string is considered to be encrypted by the application-specificCryptor.Helper methods dealing with exceptions.ExceptionHelper.Handler<T extends Throwable>Exception handler.Helper methods for file and resource handling.A freezable object.Multilingual text.
This is an immutable and serializable object which is supported as a regular datatype viaorg.tentackle.sql.datatypes.I18NTextType.Runtime exception to signal that the current thread was interrupted.
Usually wraps a checkedInterruptedException, but any cause is accepted.Launcher building aModuleLayergraph and handing off to the real application.The declarative description of a wholeModuleLayergraph, as built byModuleLayerBuilderand consumed byLayerBootstrap.The declarative description of one namedModuleLayer.A provider forLocales.
Supports thread-local locales and mapping of locales according to the application requirements.Annotation to mark an annotation to be processed by theMappedServiceAnalyzeHandler.
For each class annotated with the marked annotation, a line<annotated class> = <value>is appended toMETA-INF/mapped-services/<service class>(seeConstants.MAPPED_SERVICE_PATH).Interface to determine the module hierarchy.
Provides a hook to access resources from within a module.Holds information about a module.Builds a graph ofModuleLayers from aLayerGraphSpec.Annotation to override the module order for theServiceFinder.A dependency sorter for jigsaw modules.Naming rules for classnames.
Used at runtime to determine the remote delegates, at build time by some wurblets, and by the wizard to generate PDO and operation sources.
Can be replaced via@Service(NamingRules.class)for application-specific rules.Annotation to express that the annotated class looks like a bundle, but is not one.NumericEvaluator<T extends Number>A small arithmetic expression evaluator for numeric values.NumericVariable<T extends Number>A named numeric variable passed to aNumericEvaluator.Generic object serializer.A string of parameters.Generic path to something.A factory forPaths.Annotation for records that must be analyzed for code generation.Annotation for manually written methods that must be remoting-capable.Annotation to express that the annotated class is a service implementation.Factory for services based onServiceFinder.Finds service configurations.Key to map service finders.Annotation to express that the annotated class is a service implementation.
Differs from @Servicein that the service can be some arbitrary name.Global settings.Some handy methods for strings.Translates strings to a reduced char set.Stripping mode for strings with respect to a filler character.TBinary<T>Datatype for storing an object in a database.
Same asBinary, but uses the application-specificObjectSerializerimplementation.Tentackle runtime exception.Time with database semantics.Timestamp with a UTC option.Finds external tools to execute.Runner for external tools.Holds Tentackle versioning information.