• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/java/com/sleepycat/persist/model/
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_03) on Mon Apr 12 16:25:50 EDT 2010 -->
6<TITLE>
7ClassEnhancer (Oracle - Berkeley DB Java API)
8</TITLE>
9
10<META NAME="date" CONTENT="2010-04-12">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../style.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="ClassEnhancer (Oracle - Berkeley DB Java API)";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClassEnhancer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../com/sleepycat/persist/model/AnnotationModel.html" title="class in com.sleepycat.persist.model"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../com/sleepycat/persist/model/ClassMetadata.html" title="class in com.sleepycat.persist.model"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?com/sleepycat/persist/model/ClassEnhancer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ClassEnhancer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91com.sleepycat.persist.model</FONT>
92<BR>
93Class ClassEnhancer</H2>
94<PRE>
95<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.persist.model.ClassEnhancer</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/ClassFileTransformer.html?is-external=true" title="class or interface in java.lang.instrument">ClassFileTransformer</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>ClassEnhancer</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/ClassFileTransformer.html?is-external=true" title="class or interface in java.lang.instrument">ClassFileTransformer</A></DL>
104</PRE>
105
106<P>
107Enhances the bytecode of persistent classes to provide efficient access to
108 fields and constructors, and to avoid special security policy settings for
109 accessing non-public members.  Classes are enhanced if they are annotated
110 with <A HREF="../../../../com/sleepycat/persist/model/Entity.html" title="annotation in com.sleepycat.persist.model"><CODE>Entity</CODE></A> or <A HREF="../../../../com/sleepycat/persist/model/Persistent.html" title="annotation in com.sleepycat.persist.model"><CODE>Persistent</CODE></A>.
111
112 <p><code>ClassEnhancer</code> objects are thread-safe.  Multiple threads may
113 safely call the methods of a shared <code>ClassEnhancer</code> object.</p>
114
115 <p>As described in the <a
116 href="../package-summary.html#bytecode">package summary</a>, bytecode
117 enhancement may be used either at runtime or offline (at build time).</p>
118
119 <p>To use enhancement offline, this class may be used as a <A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#main(java.lang.String[])"><CODE>main
120 program</CODE></A>.  It may also be used via a ClassEnhancerTask ant task: the source
121 is in the <pre>java/ext</pre> directory in Berkeley DB.</p>
122
123 <p>For enhancement at runtime, this class provides the low level support
124 needed to transform class bytes during class loading.  To configure runtime
125 enhancement you may use one of the following approaches:</p>
126 <ol>
127 <li>The BDB <code>je-&lt;version&gt;.jar</code> or <code>db.jar</code> file may be used as
128 an instrumentation agent as follows:
129 <pre class="code">java -javaagent:&lt;BDB-JAR-FILE&gt;=enhance:packageNames ...</pre>
130 <code>packageNames</code> is a comma separated list of packages containing
131 persistent classes.  Sub-packages of these packages are also searched.  If
132 <code>packageNames</code> is omitted then all packages known to the current
133 classloader are searched.
134 <p>The "-v" option may be included in the comma separated list to print the
135 name of each class that is enhanced.</p></li>
136 <br>
137 <li>The <A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#enhance(java.lang.String, byte[])"><CODE>enhance(java.lang.String, byte[])</CODE></A> method may be called to implement a class loader
138 that performs enhancement.  Using this approach, it is the developer's
139 responsibility to implement and configure the class loader.</li>
140 </ol>
141<P>
142
143<P>
144<HR>
145
146<P>
147
148<!-- ======== CONSTRUCTOR SUMMARY ======== -->
149
150<A NAME="constructor_summary"><!-- --></A>
151<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
154<B>Constructor Summary</B></FONT></TH>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#ClassEnhancer()">ClassEnhancer</A></B>()</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a class enhancer that searches all packages.</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#ClassEnhancer(java.util.Set)">ClassEnhancer</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;packageNames)</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a class enhancer that searches a given set of packages.</TD>
167</TR>
168</TABLE>
169&nbsp;
170<!-- ========== METHOD SUMMARY =========== -->
171
172<A NAME="method_summary"><!-- --></A>
173<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
174<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
175<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
176<B>Method Summary</B></FONT></TH>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;byte[]</CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#enhance(java.lang.String, byte[])">enhance</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;className,
182        byte[]&nbsp;classBytes)</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enhances the given class bytes if the class is annotated with <A HREF="../../../../com/sleepycat/persist/model/Entity.html" title="annotation in com.sleepycat.persist.model"><CODE>Entity</CODE></A> or <A HREF="../../../../com/sleepycat/persist/model/Persistent.html" title="annotation in com.sleepycat.persist.model"><CODE>Persistent</CODE></A>.</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;boolean</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#getVerbose()">getVerbose</A></B>()</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets verbose mode.</TD>
194</TR>
195<TR BGCOLOR="white" CLASS="TableRowColor">
196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197<CODE>static&nbsp;void</CODE></FONT></TD>
198<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enhances classes in the directories specified.</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205<CODE>static&nbsp;void</CODE></FONT></TD>
206<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#premain(java.lang.String, java.lang.instrument.Instrumentation)">premain</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;args,
207        <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html?is-external=true" title="class or interface in java.lang.instrument">Instrumentation</A>&nbsp;inst)</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enhances classes as specified by a JVM -javaagent argument.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;void</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#setVerbose(boolean)">setVerbose</A></B>(boolean&nbsp;verbose)</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets verbose mode.</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>&nbsp;byte[]</CODE></FONT></TD>
223<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#transform(java.lang.ClassLoader, java.lang.String, java.lang.Class, java.security.ProtectionDomain, byte[])">transform</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;loader,
224          <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;className,
225          <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;classBeingRedefined,
226          <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/ProtectionDomain.html?is-external=true" title="class or interface in java.security">ProtectionDomain</A>&nbsp;protectionDomain,
227          byte[]&nbsp;classfileBuffer)</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
231</TR>
232</TABLE>
233&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
234<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
236<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
240</TR>
241</TABLE>
242&nbsp;
243<P>
244
245<!-- ========= CONSTRUCTOR DETAIL ======== -->
246
247<A NAME="constructor_detail"><!-- --></A>
248<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
251<B>Constructor Detail</B></FONT></TH>
252</TR>
253</TABLE>
254
255<A NAME="ClassEnhancer()"><!-- --></A><H3>
256ClassEnhancer</H3>
257<PRE>
258public <B>ClassEnhancer</B>()</PRE>
259<DL>
260<DD>Creates a class enhancer that searches all packages.
261<P>
262</DL>
263<HR>
264
265<A NAME="ClassEnhancer(java.util.Set)"><!-- --></A><H3>
266ClassEnhancer</H3>
267<PRE>
268public <B>ClassEnhancer</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;packageNames)</PRE>
269<DL>
270<DD>Creates a class enhancer that searches a given set of packages.
271<P>
272<DL>
273<DT><B>Parameters:</B><DD><CODE>packageNames</CODE> - a set of packages to search for persistent
274 classes.  Sub-packages of these packages are also searched.  If empty or
275 null, all packages known to the current classloader are searched.</DL>
276</DL>
277
278<!-- ============ METHOD DETAIL ========== -->
279
280<A NAME="method_detail"><!-- --></A>
281<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
282<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
283<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
284<B>Method Detail</B></FONT></TH>
285</TR>
286</TABLE>
287
288<A NAME="main(java.lang.String[])"><!-- --></A><H3>
289main</H3>
290<PRE>
291public static void <B>main</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;args)
292                 throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
293<DL>
294<DD>Enhances classes in the directories specified.  The class files are
295 replaced when they are enhanced, without changing the file modification
296 date.  For example:
297
298 <pre class="code">java -cp je-&lt;version&gt;.jar com.sleepycat.persist.model.ClassEnhancer ./classes</pre>
299
300 <p>The "-v" argument may be specified to print the name of each class
301 file that is enhanced.  The total number of class files enhanced will
302 always be printed.</p>
303<P>
304<DD><DL>
305</DL>
306</DD>
307<DD><DL>
308<DT><B>Parameters:</B><DD><CODE>args</CODE> - one or more directories containing classes to be enhanced.
309 Subdirectories of these directories will also be searched.  Optionally,
310 -v may be included to print the name of every class file enhanced.
311<DT><B>Throws:</B>
312<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL>
313</DD>
314</DL>
315<HR>
316
317<A NAME="premain(java.lang.String, java.lang.instrument.Instrumentation)"><!-- --></A><H3>
318premain</H3>
319<PRE>
320public static void <B>premain</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;args,
321                           <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html?is-external=true" title="class or interface in java.lang.instrument">Instrumentation</A>&nbsp;inst)</PRE>
322<DL>
323<DD>Enhances classes as specified by a JVM -javaagent argument.
324<P>
325<DD><DL>
326</DL>
327</DD>
328<DD><DL>
329<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html?is-external=true" title="class or interface in java.lang.instrument"><CODE>Instrumentation</CODE></A></DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="setVerbose(boolean)"><!-- --></A><H3>
335setVerbose</H3>
336<PRE>
337public void <B>setVerbose</B>(boolean&nbsp;verbose)</PRE>
338<DL>
339<DD>Sets verbose mode.
340
341 <p>True may be specified to print the name of each class file that is
342 enhanced.  This property is false by default.</p>
343<P>
344<DD><DL>
345</DL>
346</DD>
347<DD><DL>
348</DL>
349</DD>
350</DL>
351<HR>
352
353<A NAME="getVerbose()"><!-- --></A><H3>
354getVerbose</H3>
355<PRE>
356public boolean <B>getVerbose</B>()</PRE>
357<DL>
358<DD>Gets verbose mode.
359<P>
360<DD><DL>
361</DL>
362</DD>
363<DD><DL>
364<DT><B>See Also:</B><DD><A HREF="../../../../com/sleepycat/persist/model/ClassEnhancer.html#setVerbose(boolean)"><CODE>setVerbose(boolean)</CODE></A></DL>
365</DD>
366</DL>
367<HR>
368
369<A NAME="transform(java.lang.ClassLoader, java.lang.String, java.lang.Class, java.security.ProtectionDomain, byte[])"><!-- --></A><H3>
370transform</H3>
371<PRE>
372public byte[] <B>transform</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;loader,
373                        <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;className,
374                        <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;classBeingRedefined,
375                        <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/ProtectionDomain.html?is-external=true" title="class or interface in java.security">ProtectionDomain</A>&nbsp;protectionDomain,
376                        byte[]&nbsp;classfileBuffer)</PRE>
377<DL>
378<DD><DL>
379<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/ClassFileTransformer.html?is-external=true#transform(java.lang.ClassLoader, java.lang.String, java.lang.Class, java.security.ProtectionDomain, byte[])" title="class or interface in java.lang.instrument">transform</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/ClassFileTransformer.html?is-external=true" title="class or interface in java.lang.instrument">ClassFileTransformer</A></CODE></DL>
380</DD>
381<DD><DL>
382</DL>
383</DD>
384</DL>
385<HR>
386
387<A NAME="enhance(java.lang.String, byte[])"><!-- --></A><H3>
388enhance</H3>
389<PRE>
390public byte[] <B>enhance</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;className,
391                      byte[]&nbsp;classBytes)</PRE>
392<DL>
393<DD>Enhances the given class bytes if the class is annotated with <A HREF="../../../../com/sleepycat/persist/model/Entity.html" title="annotation in com.sleepycat.persist.model"><CODE>Entity</CODE></A> or <A HREF="../../../../com/sleepycat/persist/model/Persistent.html" title="annotation in com.sleepycat.persist.model"><CODE>Persistent</CODE></A>.
394<P>
395<DD><DL>
396</DL>
397</DD>
398<DD><DL>
399<DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name in binary format; for example,
400 "my.package.MyClass$Name", or null if no filtering by class name
401 should be performed.<DD><CODE>classBytes</CODE> - are the class file bytes to be enhanced.
402<DT><B>Returns:</B><DD>the enhanced bytes, or null if no enhancement was performed.</DL>
403</DD>
404</DL>
405<!-- ========= END OF CLASS DATA ========= -->
406<HR>
407
408
409<!-- ======= START OF BOTTOM NAVBAR ====== -->
410<A NAME="navbar_bottom"><!-- --></A>
411<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
412<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
413<TR>
414<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
415<A NAME="navbar_bottom_firstrow"><!-- --></A>
416<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
417  <TR ALIGN="center" VALIGN="top">
418  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
419  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
420  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
421  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClassEnhancer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
422  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
423  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
424  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
425  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
426  </TR>
427</TABLE>
428</TD>
429<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
430<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM>
431</TD>
432</TR>
433
434<TR>
435<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
436&nbsp;<A HREF="../../../../com/sleepycat/persist/model/AnnotationModel.html" title="class in com.sleepycat.persist.model"><B>PREV CLASS</B></A>&nbsp;
437&nbsp;<A HREF="../../../../com/sleepycat/persist/model/ClassMetadata.html" title="class in com.sleepycat.persist.model"><B>NEXT CLASS</B></A></FONT></TD>
438<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
439  <A HREF="../../../../index.html?com/sleepycat/persist/model/ClassEnhancer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
440&nbsp;<A HREF="ClassEnhancer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
441&nbsp;<SCRIPT type="text/javascript">
442  <!--
443  if(window==top) {
444    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
445  }
446  //-->
447</SCRIPT>
448<NOSCRIPT>
449  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
450</NOSCRIPT>
451
452
453</FONT></TD>
454</TR>
455<TR>
456<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
457  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
458<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
459DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
460</TR>
461</TABLE>
462<A NAME="skip-navbar_bottom"></A>
463<!-- ======== END OF BOTTOM NAVBAR ======= -->
464
465<HR>
466<font size=1>Copyright (c) 1996-2009 Oracle.  All rights reserved.</font>
467</BODY>
468</HTML>
469