diff options
author | chibash <chiba@javassist.org> | 2015-01-06 02:54:09 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2015-01-06 02:54:09 +0900 |
commit | 5a6662f29d49404965a9138d323d09aafc12128e (patch) | |
tree | 8f69a67ce83d946add6daaae63cc4c93cbcaf8e7 /src/main/javassist/util/proxy | |
parent | ec3afdfb5d58b98ae8091d59f84d0d2f7f97a725 (diff) | |
download | javassist-5a6662f29d49404965a9138d323d09aafc12128e.tar.gz javassist-5a6662f29d49404965a9138d323d09aafc12128e.zip |
preparation for 3.19 release. fixed bugs in javadoc comments
Diffstat (limited to 'src/main/javassist/util/proxy')
-rw-r--r-- | src/main/javassist/util/proxy/ProxyFactory.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java index 34d67179..8c43fa65 100644 --- a/src/main/javassist/util/proxy/ProxyFactory.java +++ b/src/main/javassist/util/proxy/ProxyFactory.java @@ -46,7 +46,7 @@ import javassist.bytecode.*; * * <p>For example, if the following code is executed, * - * <ul><pre> + * <pre> * ProxyFactory f = new ProxyFactory(); * f.setSuperclass(Foo.class); * f.setFilter(new MethodFilter() { @@ -65,7 +65,7 @@ import javassist.bytecode.*; * }; * Foo foo = (Foo)c.newInstance(); * ((Proxy)foo).setHandler(mi); - * </pre></ul> + * </pre> * * <p>Here, <code>Method</code> is <code>java.lang.reflect.Method</code>.</p> * @@ -73,40 +73,40 @@ import javassist.bytecode.*; * <code>mi</code> and prints a message before executing the originally called method * <code>bar()</code> in <code>Foo</code>. * - * <ul><pre> + * <pre> * foo.bar(); - * </pre></ul> + * </pre> * * <p>The last three lines of the code shown above can be replaced with a call to * the helper method <code>create</code>, which generates a proxy class, instantiates * it, and sets the method handler of the instance: * - * <ul><pre> + * <pre> * : * Foo foo = (Foo)f.create(new Class[0], new Object[0], mi); - * </pre></ul> + * </pre> * * <p>To change the method handler during runtime, * execute the following code: * - * <ul><pre> + * <pre> * MethodHandler mi = ... ; // alternative handler * ((Proxy)foo).setHandler(mi); - * </pre></ul> + * </pre> * * <p> If setHandler is never called for a proxy instance then it will * employ the default handler which proceeds by invoking the original method. * The behaviour of the default handler is identical to the following * handler: * - * <ul><pre> + * <pre> * class EmptyHandler implements MethodHandler { * public Object invoke(Object self, Method m, * Method proceed, Object[] args) throws Exception { * return proceed.invoke(self, args); * } * } - * </pre></ul> + * </pre> * * <p>A proxy factory caches and reuses proxy classes by default. It is possible to reset * this default globally by setting static field {@link ProxyFactory#useCache} to false. @@ -592,13 +592,13 @@ public class ProxyFactory { * implementation. * * <p>Example: - * <ul><pre> + * <pre> * ProxyFactory.classLoaderProvider = new ProxyFactory.ClassLoaderProvider() { * public ClassLoader get(ProxyFactory pf) { * return Thread.currentThread().getContextClassLoader(); * } * }; - * </pre></ul> + * </pre> * * @since 3.4 */ |