Package lazyj
Here you find the database wrapper, servlet wrapper, logger, formatting utilities and other utility classes.
- Since:
- 1.0.0
-
Class Summary Class Description CachingStructure Holding class for page cache entriesDateFileWatchdog This class monitors a specified File for a change and notifies back when the file on disk has changed.DBFunctions Wrapper for JDBC connections and collection of useful functions related to database connections.DBFunctions.DBConnection Wrapper around a raw database connection.DBProperties DBSession Web session wrapper, with a database backend.
This class will take the database settings from the file "dbsessions.properties" that is found in the folder specified by the system property "lazyj.config.folder".EpochTimeRange Wrap a PostgreSQL int8range column type with some simple operations.ExtendedServlet Probably the most important class in the world :)
This class is a wrapper over the original HttpServlet, adding caching and run time limit for the servlets.ExtProperties Utility class to process enhanced .properties file.
Such a file can have a special "include" key, which is a list of comma-separated file names (without the .properties extension) relative to the same base folder.
Each value can contain constructions like:${other_key}
, to include the value of another key in that place This object can monitor an underlying file for modifications and automatically reload the contents of the file when it detects changes.FallbackProperties FileLinesIterable Iterable object over the lines in a bufferFileLinesIterator Iterator over the lines in a bufferFormat Utility class providing lots of useful or less useful functions.Format.JSONFragment FrameworkStats Statistics for the framework.Log Logging facility.LRUMap<K,V> A Map with restricted size and LRU behavior (when the size is reached the oldest unused entry is deleted to make some space for the new entry).
The implementation is based on LinkedHashMap, thus it is not thread safe.PageCache This is the page cache.RequestWrapper This utility class is adapted for JSP use, offering easy access to the parameters and file uploading.StringFactory Keep references to common strings to avoid filling the memory with garbage.ThreadsMonitor This class is used to monitor servlet threads, killing the ones that run for longer than it was specified.Utils Utils.Base64Coder