Package org.apache.openjpa.lib.util

General Utilities

See:
          Description

Interface Summary
BytecodeWriter Control how enhanced bytecode is written.
Closeable Generic interface for components that can be closed so that helpers can treate them in a generic way.
EventManager Basic event manager interface.
ReferenceMap A Map type that can hold its keys, values, or both with weak or soft references.
SizedMap A Map type that maintains a maximum size, automatically removing entries when the maximum is exceeded.
 

Class Summary
Base16Encoder Base 16 encoder.
Bytes This class came from the Apache Commons Id sandbox project in support of the UUIDGenerator implementation.
CodeFormat Encapsulates some common Java source code formatting options.
Files Utility operations on files.
FormatPreservingProperties 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.
J2DoPrivHelper 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.getResource Class.newInstance ClassLoader.getParent ClassLoader.getResource ClassLoader.getResources ClassLoader.getSystemClassLoader File.delete File.exists File.getAbsoluteFile File.getAbsolutePath File.getCanonicalPath File.listFiles File.length File.isDirectory File.mkdirs File.renameTo FileInputStream new FileOutputStream new System.getProperties InetAddress.getByName MultiClassLoader new ServerSocket new Socket new Socket.accept System.getProperty Thread.getContextClassLoader TemporaryClassLoader new URL.openStream URLConnection.getContent ZipFile new serp.bytecode.Code new serp.bytecode.BCClassLoader new serp.bytecode.BCClass.write serp.bytecode.BCClass.getFields serp.bytecode.FieldInstruction.getField serp.bytecode.Project.loadClass If these methods are used, the following sample usage patterns should be followed to ensure proper privilege is granted: 1) No security risk method call.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/JavaVersions.html" title="class in org.apache.openjpa.lib.util">JavaVersions</A></B></TD> <TD>Utilities for dealing with different Java spec versions.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/Localizer.html" title="class in org.apache.openjpa.lib.util">Localizer</A></B></TD> <TD>The Localizer provides convenient access to localized strings.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/Localizer.Message.html" title="class in org.apache.openjpa.lib.util">Localizer.Message</A></B></TD> <TD>A <code>Message</code> can provide a localized message via the <A HREF="../../../../../org/apache/openjpa/lib/util/Localizer.Message.html#getMessage()"><CODE>Localizer.Message.getMessage()</CODE></A> method call, and can also provide the original key, package, and substitution array that were used to assemble the message.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/LRUMap.html" title="class in org.apache.openjpa.lib.util">LRUMap</A></B></TD> <TD>Extension of the commons <code>LRUMap</code> that can change its maximum size.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/MultiClassLoader.html" title="class in org.apache.openjpa.lib.util">MultiClassLoader</A></B></TD> <TD>Class loader type that can be configured to delegate to multiple internal class loaders.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/Options.html" title="class in org.apache.openjpa.lib.util">Options</A></B></TD> <TD>A specialization of the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html" title="class or interface in java.util"><CODE>Properties</CODE></A> 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.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/ParameterTemplate.html" title="class in org.apache.openjpa.lib.util">ParameterTemplate</A></B></TD> <TD>A template that allows parameter substitutions.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/ReferenceHashMap.html" title="class in org.apache.openjpa.lib.util">ReferenceHashMap</A></B></TD> <TD>Map in which the key, value, or both may be weak/soft references.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/ReferenceHashSet.html" title="class in org.apache.openjpa.lib.util">ReferenceHashSet</A></B></TD> <TD>A set whose values may be stored as weak or soft references.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/Services.html" title="class in org.apache.openjpa.lib.util">Services</A></B></TD> <TD>Utility classes to locate services, as defined in the <a href="http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html #Service%20Provider">Jar File Specification</a>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/SimpleRegex.html" title="class in org.apache.openjpa.lib.util">SimpleRegex</A></B></TD> <TD>Allows for simple regex style testing of strings.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/StringDistance.html" title="class in org.apache.openjpa.lib.util">StringDistance</A></B></TD> <TD>Utilities for calculating string distance.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/TemporaryClassLoader.html" title="class in org.apache.openjpa.lib.util">TemporaryClassLoader</A></B></TD> <TD>ClassLoader implementation that allows classes to be temporarily loaded and then thrown away.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/TypedProperties.html" title="class in org.apache.openjpa.lib.util">TypedProperties</A></B></TD> <TD>A specialization of the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html" title="class or interface in java.util"><CODE>Properties</CODE></A> map type with added convenience methods to retrieve and set options as primitive values.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/UUIDGenerator.html" title="class in org.apache.openjpa.lib.util">UUIDGenerator</A></B></TD> <TD>UUID value generator.</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Exception Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/FormatPreservingProperties.DuplicateKeyException.html" title="class in org.apache.openjpa.lib.util">FormatPreservingProperties.DuplicateKeyException</A></B></TD> <TD>&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/openjpa/lib/util/ParseException.html" title="class in org.apache.openjpa.lib.util">ParseException</A></B></TD> <TD>Exception type for parse errors.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="package_description"><!-- --></A><H2> Package org.apache.openjpa.lib.util Description </H2> <P> <p><strong>General Utilities</strong></p> <P> <P> <DL> </DL> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../../org/apache/openjpa/lib/rop/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../../org/apache/openjpa/lib/util/concurrent/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/openjpa/lib/util/package-summary.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright &copy; 2006-2007 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved. </BODY> </HTML>