diff options
Diffstat (limited to 'src/main/javassist/util/proxy/ProxyFactory.java')
-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 */ |