commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r902367 [24/26] - in /websites/production/commons/content/proper/commons-proxy/javadocs: ./ 1.0/ 1.0/org/ 1.0/org/apache/ 1.0/org/apache/commons/ 1.0/org/apache/commons/proxy/ 1.0/org/apache/commons/proxy/class-use/ 1.0/org/apache/commons/p...
Date Wed, 19 Mar 2014 18:25:08 GMT
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/FilteredInterceptor.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/FilteredInterceptor.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/FilteredInterceptor.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,131 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.Invocation;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.commons.proxy.Interceptor;<a name="line.21"></a>
+<FONT color="green">022</FONT>    <a name="line.22"></a>
+<FONT color="green">023</FONT>    /**<a name="line.23"></a>
+<FONT color="green">024</FONT>     * Decorates another &lt;code&gt;MethodInterceptor&lt;/code&gt; by only calling it if the method is accepted by the supplied<a name="line.24"></a>
+<FONT color="green">025</FONT>     * &lt;code&gt;MethodFilter&lt;/code&gt;.<a name="line.25"></a>
+<FONT color="green">026</FONT>     *<a name="line.26"></a>
+<FONT color="green">027</FONT>     * @author James Carman<a name="line.27"></a>
+<FONT color="green">028</FONT>     * @since 1.0<a name="line.28"></a>
+<FONT color="green">029</FONT>     */<a name="line.29"></a>
+<FONT color="green">030</FONT>    public class FilteredInterceptor implements Interceptor<a name="line.30"></a>
+<FONT color="green">031</FONT>    {<a name="line.31"></a>
+<FONT color="green">032</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.32"></a>
+<FONT color="green">033</FONT>    // Fields<a name="line.33"></a>
+<FONT color="green">034</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.34"></a>
+<FONT color="green">035</FONT>    <a name="line.35"></a>
+<FONT color="green">036</FONT>        private final Interceptor inner;<a name="line.36"></a>
+<FONT color="green">037</FONT>        private final MethodFilter filter;<a name="line.37"></a>
+<FONT color="green">038</FONT>    <a name="line.38"></a>
+<FONT color="green">039</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.39"></a>
+<FONT color="green">040</FONT>    // Constructors<a name="line.40"></a>
+<FONT color="green">041</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.41"></a>
+<FONT color="green">042</FONT>    <a name="line.42"></a>
+<FONT color="green">043</FONT>        public FilteredInterceptor( Interceptor inner, MethodFilter filter )<a name="line.43"></a>
+<FONT color="green">044</FONT>        {<a name="line.44"></a>
+<FONT color="green">045</FONT>            this.inner = inner;<a name="line.45"></a>
+<FONT color="green">046</FONT>            this.filter = filter;<a name="line.46"></a>
+<FONT color="green">047</FONT>        }<a name="line.47"></a>
+<FONT color="green">048</FONT>    <a name="line.48"></a>
+<FONT color="green">049</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT>    // MethodInterceptor Implementation<a name="line.50"></a>
+<FONT color="green">051</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.51"></a>
+<FONT color="green">052</FONT>    <a name="line.52"></a>
+<FONT color="green">053</FONT>        public Object intercept( Invocation invocation ) throws Throwable<a name="line.53"></a>
+<FONT color="green">054</FONT>        {<a name="line.54"></a>
+<FONT color="green">055</FONT>            if( filter.accepts( invocation.getMethod() ) )<a name="line.55"></a>
+<FONT color="green">056</FONT>            {<a name="line.56"></a>
+<FONT color="green">057</FONT>                return inner.intercept( invocation );<a name="line.57"></a>
+<FONT color="green">058</FONT>            }<a name="line.58"></a>
+<FONT color="green">059</FONT>            else<a name="line.59"></a>
+<FONT color="green">060</FONT>            {<a name="line.60"></a>
+<FONT color="green">061</FONT>                return invocation.proceed();<a name="line.61"></a>
+<FONT color="green">062</FONT>            }<a name="line.62"></a>
+<FONT color="green">063</FONT>        }<a name="line.63"></a>
+<FONT color="green">064</FONT>    }<a name="line.64"></a>
+<FONT color="green">065</FONT>    <a name="line.65"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/FilteredInterceptor.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/InterceptorChain.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/InterceptorChain.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/InterceptorChain.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,223 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.ObjectProvider;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.commons.proxy.ProxyFactory;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.commons.proxy.ProxyUtils;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.commons.proxy.Interceptor;<a name="line.23"></a>
+<FONT color="green">024</FONT>    <a name="line.24"></a>
+<FONT color="green">025</FONT>    /**<a name="line.25"></a>
+<FONT color="green">026</FONT>     * An &lt;code&gt;InterceptorChain&lt;/code&gt; assists with creating proxies which go through a series of<a name="line.26"></a>
+<FONT color="green">027</FONT>     * {@link Interceptor interceptors}.<a name="line.27"></a>
+<FONT color="green">028</FONT>     *<a name="line.28"></a>
+<FONT color="green">029</FONT>     * &lt;pre&gt;<a name="line.29"></a>
+<FONT color="green">030</FONT>     *   MyServiceInterface serviceImpl = ...;<a name="line.30"></a>
+<FONT color="green">031</FONT>     *   ProxyFactory factory = ...;<a name="line.31"></a>
+<FONT color="green">032</FONT>     *   Interceptor[] interceptors = ...;<a name="line.32"></a>
+<FONT color="green">033</FONT>     *   InterceptorChain chain = new InterceptorChain(interceptors);<a name="line.33"></a>
+<FONT color="green">034</FONT>     *   ObjectProvider provider = chain.createProxyProvider(factory, serviceImpl);<a name="line.34"></a>
+<FONT color="green">035</FONT>     *   MyServiceInterface serviceProxy = ( MyServiceInterface )provider.getObject();<a name="line.35"></a>
+<FONT color="green">036</FONT>     *   serviceProxy.someServiceMethod(...); // This will go through the interceptors! <a name="line.36"></a>
+<FONT color="green">037</FONT>     * &lt;/pre&gt;<a name="line.37"></a>
+<FONT color="green">038</FONT>     *<a name="line.38"></a>
+<FONT color="green">039</FONT>     * @author James Carman<a name="line.39"></a>
+<FONT color="green">040</FONT>     * @since 1.0<a name="line.40"></a>
+<FONT color="green">041</FONT>     */<a name="line.41"></a>
+<FONT color="green">042</FONT>    public class InterceptorChain<a name="line.42"></a>
+<FONT color="green">043</FONT>    {<a name="line.43"></a>
+<FONT color="green">044</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.44"></a>
+<FONT color="green">045</FONT>    // Fields<a name="line.45"></a>
+<FONT color="green">046</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.46"></a>
+<FONT color="green">047</FONT>        private final Interceptor[] interceptors;<a name="line.47"></a>
+<FONT color="green">048</FONT>    <a name="line.48"></a>
+<FONT color="green">049</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT>    // Constructors<a name="line.50"></a>
+<FONT color="green">051</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.51"></a>
+<FONT color="green">052</FONT>    <a name="line.52"></a>
+<FONT color="green">053</FONT>        public InterceptorChain( Interceptor[] interceptors )<a name="line.53"></a>
+<FONT color="green">054</FONT>        {<a name="line.54"></a>
+<FONT color="green">055</FONT>            this.interceptors = interceptors;<a name="line.55"></a>
+<FONT color="green">056</FONT>        }<a name="line.56"></a>
+<FONT color="green">057</FONT>    <a name="line.57"></a>
+<FONT color="green">058</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.58"></a>
+<FONT color="green">059</FONT>    // Other Methods<a name="line.59"></a>
+<FONT color="green">060</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.60"></a>
+<FONT color="green">061</FONT>    <a name="line.61"></a>
+<FONT color="green">062</FONT>        private Object createProxy( ProxyFactory proxyFactory, ClassLoader classLoader, Object terminus,<a name="line.62"></a>
+<FONT color="green">063</FONT>                                    Class[] proxyClasses )<a name="line.63"></a>
+<FONT color="green">064</FONT>        {<a name="line.64"></a>
+<FONT color="green">065</FONT>            Object currentTarget = terminus;<a name="line.65"></a>
+<FONT color="green">066</FONT>            for( int i = interceptors.length - 1; i &gt;= 0; --i )<a name="line.66"></a>
+<FONT color="green">067</FONT>            {<a name="line.67"></a>
+<FONT color="green">068</FONT>                currentTarget = proxyFactory<a name="line.68"></a>
+<FONT color="green">069</FONT>                        .createInterceptorProxy( classLoader, currentTarget, interceptors[i], proxyClasses );<a name="line.69"></a>
+<FONT color="green">070</FONT>            }<a name="line.70"></a>
+<FONT color="green">071</FONT>            return currentTarget;<a name="line.71"></a>
+<FONT color="green">072</FONT>        }<a name="line.72"></a>
+<FONT color="green">073</FONT>    <a name="line.73"></a>
+<FONT color="green">074</FONT>        /**<a name="line.74"></a>
+<FONT color="green">075</FONT>         * Creates an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.75"></a>
+<FONT color="green">076</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object.  The proxy will support all<a name="line.76"></a>
+<FONT color="green">077</FONT>         * interfaces implemented by the terminus object.  The thread context classloader will be used to generate the<a name="line.77"></a>
+<FONT color="green">078</FONT>         * proxy class.<a name="line.78"></a>
+<FONT color="green">079</FONT>         * <a name="line.79"></a>
+<FONT color="green">080</FONT>         * @param proxyFactory the {@link ProxyFactory} to use to create the proxy<a name="line.80"></a>
+<FONT color="green">081</FONT>         * @param terminus the terminus<a name="line.81"></a>
+<FONT color="green">082</FONT>         * @return an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.82"></a>
+<FONT color="green">083</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object<a name="line.83"></a>
+<FONT color="green">084</FONT>         */<a name="line.84"></a>
+<FONT color="green">085</FONT>        public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, Object terminus )<a name="line.85"></a>
+<FONT color="green">086</FONT>        {<a name="line.86"></a>
+<FONT color="green">087</FONT>            return createProxyProvider( proxyFactory, terminus, null );<a name="line.87"></a>
+<FONT color="green">088</FONT>        }<a name="line.88"></a>
+<FONT color="green">089</FONT>    <a name="line.89"></a>
+<FONT color="green">090</FONT>        /**<a name="line.90"></a>
+<FONT color="green">091</FONT>         * Creates an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.91"></a>
+<FONT color="green">092</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object.  The proxy will support only<a name="line.92"></a>
+<FONT color="green">093</FONT>         * the specified interfaces/classes.  The thread context classloader will be used to generate the<a name="line.93"></a>
+<FONT color="green">094</FONT>         * proxy class.<a name="line.94"></a>
+<FONT color="green">095</FONT>         *<a name="line.95"></a>
+<FONT color="green">096</FONT>         * @param proxyFactory the {@link ProxyFactory} to use to create the proxy<a name="line.96"></a>
+<FONT color="green">097</FONT>         * @param terminus the terminus<a name="line.97"></a>
+<FONT color="green">098</FONT>         * @param proxyClasses the interfaces to support<a name="line.98"></a>
+<FONT color="green">099</FONT>         * @return an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.99"></a>
+<FONT color="green">100</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object<a name="line.100"></a>
+<FONT color="green">101</FONT>         */<a name="line.101"></a>
+<FONT color="green">102</FONT>        public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, Object terminus, Class[] proxyClasses )<a name="line.102"></a>
+<FONT color="green">103</FONT>        {<a name="line.103"></a>
+<FONT color="green">104</FONT>            return createProxyProvider( proxyFactory, Thread.currentThread().getContextClassLoader(), terminus,<a name="line.104"></a>
+<FONT color="green">105</FONT>                                        proxyClasses );<a name="line.105"></a>
+<FONT color="green">106</FONT>        }<a name="line.106"></a>
+<FONT color="green">107</FONT>    <a name="line.107"></a>
+<FONT color="green">108</FONT>        /**<a name="line.108"></a>
+<FONT color="green">109</FONT>         * Creates an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.109"></a>
+<FONT color="green">110</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object.  The proxy will support only<a name="line.110"></a>
+<FONT color="green">111</FONT>         * the specified interfaces/classes.  The specified classloader will be used to generate the<a name="line.111"></a>
+<FONT color="green">112</FONT>         * proxy class.<a name="line.112"></a>
+<FONT color="green">113</FONT>         *<a name="line.113"></a>
+<FONT color="green">114</FONT>         * @param proxyFactory the {@link ProxyFactory} to use to create the proxy<a name="line.114"></a>
+<FONT color="green">115</FONT>         * @param classLoader the classloader to be used to generate the proxy class<a name="line.115"></a>
+<FONT color="green">116</FONT>         * @param terminus the terminus<a name="line.116"></a>
+<FONT color="green">117</FONT>         * @param proxyClasses the interfaces to support<a name="line.117"></a>
+<FONT color="green">118</FONT>         * @return an {@link ObjectProvider} which will return a proxy that sends method invocations through this<a name="line.118"></a>
+<FONT color="green">119</FONT>         * chain of interceptors and ultimately arrive at the supplied terminus object<a name="line.119"></a>
+<FONT color="green">120</FONT>         */<a name="line.120"></a>
+<FONT color="green">121</FONT>        public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, ClassLoader classLoader, Object terminus,<a name="line.121"></a>
+<FONT color="green">122</FONT>                                                   Class[] proxyClasses )<a name="line.122"></a>
+<FONT color="green">123</FONT>        {<a name="line.123"></a>
+<FONT color="green">124</FONT>            if( proxyClasses == null || proxyClasses.length == 0 )<a name="line.124"></a>
+<FONT color="green">125</FONT>            {<a name="line.125"></a>
+<FONT color="green">126</FONT>                proxyClasses = ProxyUtils.getAllInterfaces( terminus.getClass() );<a name="line.126"></a>
+<FONT color="green">127</FONT>            }<a name="line.127"></a>
+<FONT color="green">128</FONT>            return new ProxyObjectProvider( proxyFactory, classLoader, terminus, proxyClasses );<a name="line.128"></a>
+<FONT color="green">129</FONT>        }<a name="line.129"></a>
+<FONT color="green">130</FONT>    <a name="line.130"></a>
+<FONT color="green">131</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.131"></a>
+<FONT color="green">132</FONT>    // Inner Classes<a name="line.132"></a>
+<FONT color="green">133</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.133"></a>
+<FONT color="green">134</FONT>    <a name="line.134"></a>
+<FONT color="green">135</FONT>        private class ProxyObjectProvider implements ObjectProvider<a name="line.135"></a>
+<FONT color="green">136</FONT>        {<a name="line.136"></a>
+<FONT color="green">137</FONT>            private final ClassLoader classLoader;<a name="line.137"></a>
+<FONT color="green">138</FONT>            private final Class[] proxyClasses;<a name="line.138"></a>
+<FONT color="green">139</FONT>            private final Object terminus;<a name="line.139"></a>
+<FONT color="green">140</FONT>            private final ProxyFactory proxyFactory;<a name="line.140"></a>
+<FONT color="green">141</FONT>    <a name="line.141"></a>
+<FONT color="green">142</FONT>            public ProxyObjectProvider( ProxyFactory proxyFactory, ClassLoader classLoader, Object terminus,<a name="line.142"></a>
+<FONT color="green">143</FONT>                                        Class[] proxyClasses )<a name="line.143"></a>
+<FONT color="green">144</FONT>            {<a name="line.144"></a>
+<FONT color="green">145</FONT>                this.classLoader = classLoader;<a name="line.145"></a>
+<FONT color="green">146</FONT>                this.proxyClasses = proxyClasses;<a name="line.146"></a>
+<FONT color="green">147</FONT>                this.terminus = terminus;<a name="line.147"></a>
+<FONT color="green">148</FONT>                this.proxyFactory = proxyFactory;<a name="line.148"></a>
+<FONT color="green">149</FONT>            }<a name="line.149"></a>
+<FONT color="green">150</FONT>    <a name="line.150"></a>
+<FONT color="green">151</FONT>            public Object getObject()<a name="line.151"></a>
+<FONT color="green">152</FONT>            {<a name="line.152"></a>
+<FONT color="green">153</FONT>                return createProxy( proxyFactory, classLoader, terminus, proxyClasses );<a name="line.153"></a>
+<FONT color="green">154</FONT>            }<a name="line.154"></a>
+<FONT color="green">155</FONT>        }<a name="line.155"></a>
+<FONT color="green">156</FONT>    }<a name="line.156"></a>
+<FONT color="green">157</FONT>    <a name="line.157"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/InterceptorChain.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/LoggingInterceptor.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/LoggingInterceptor.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/LoggingInterceptor.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,247 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.logging.Log;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.commons.proxy.ProxyUtils;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.commons.proxy.Interceptor;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.commons.proxy.Invocation;<a name="line.23"></a>
+<FONT color="green">024</FONT>    <a name="line.24"></a>
+<FONT color="green">025</FONT>    /**<a name="line.25"></a>
+<FONT color="green">026</FONT>     * An interceptor which logs each method invocation.<a name="line.26"></a>
+<FONT color="green">027</FONT>     * &lt;b&gt;Note&lt;/b&gt;: The implementation of this class was borrowed from<a name="line.27"></a>
+<FONT color="green">028</FONT>     * HiveMind's logging interceptor.<a name="line.28"></a>
+<FONT color="green">029</FONT>     *<a name="line.29"></a>
+<FONT color="green">030</FONT>     * &lt;p&gt;<a name="line.30"></a>
+<FONT color="green">031</FONT>     * &lt;b&gt;Dependencies&lt;/b&gt;:<a name="line.31"></a>
+<FONT color="green">032</FONT>     * &lt;ul&gt;<a name="line.32"></a>
+<FONT color="green">033</FONT>     *   &lt;li&gt;Apache Commons Logging version 1.0.4 or greater&lt;/li&gt;<a name="line.33"></a>
+<FONT color="green">034</FONT>     * &lt;/ul&gt;<a name="line.34"></a>
+<FONT color="green">035</FONT>     * &lt;/p&gt;<a name="line.35"></a>
+<FONT color="green">036</FONT>     * @author James Carman<a name="line.36"></a>
+<FONT color="green">037</FONT>     * @since 1.0<a name="line.37"></a>
+<FONT color="green">038</FONT>     */<a name="line.38"></a>
+<FONT color="green">039</FONT>    public class LoggingInterceptor implements Interceptor<a name="line.39"></a>
+<FONT color="green">040</FONT>    {<a name="line.40"></a>
+<FONT color="green">041</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.41"></a>
+<FONT color="green">042</FONT>    // Fields<a name="line.42"></a>
+<FONT color="green">043</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.43"></a>
+<FONT color="green">044</FONT>    <a name="line.44"></a>
+<FONT color="green">045</FONT>        private static final int BUFFER_SIZE = 100;<a name="line.45"></a>
+<FONT color="green">046</FONT>        private Log log;<a name="line.46"></a>
+<FONT color="green">047</FONT>    <a name="line.47"></a>
+<FONT color="green">048</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.48"></a>
+<FONT color="green">049</FONT>    // Constructors<a name="line.49"></a>
+<FONT color="green">050</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.50"></a>
+<FONT color="green">051</FONT>    <a name="line.51"></a>
+<FONT color="green">052</FONT>        public LoggingInterceptor( Log log )<a name="line.52"></a>
+<FONT color="green">053</FONT>        {<a name="line.53"></a>
+<FONT color="green">054</FONT>            this.log = log;<a name="line.54"></a>
+<FONT color="green">055</FONT>        }<a name="line.55"></a>
+<FONT color="green">056</FONT>    <a name="line.56"></a>
+<FONT color="green">057</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.57"></a>
+<FONT color="green">058</FONT>    // MethodInterceptor Implementation<a name="line.58"></a>
+<FONT color="green">059</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.59"></a>
+<FONT color="green">060</FONT>    <a name="line.60"></a>
+<FONT color="green">061</FONT>        public Object intercept( Invocation invocation ) throws Throwable<a name="line.61"></a>
+<FONT color="green">062</FONT>        {<a name="line.62"></a>
+<FONT color="green">063</FONT>            if( log.isDebugEnabled() )<a name="line.63"></a>
+<FONT color="green">064</FONT>            {<a name="line.64"></a>
+<FONT color="green">065</FONT>                final String methodName = invocation.getMethod().getName();<a name="line.65"></a>
+<FONT color="green">066</FONT>                entry( methodName, invocation.getArguments() );<a name="line.66"></a>
+<FONT color="green">067</FONT>                try<a name="line.67"></a>
+<FONT color="green">068</FONT>                {<a name="line.68"></a>
+<FONT color="green">069</FONT>                    Object result = invocation.proceed();<a name="line.69"></a>
+<FONT color="green">070</FONT>                    if( Void.TYPE.equals( invocation.getMethod().getReturnType() ) )<a name="line.70"></a>
+<FONT color="green">071</FONT>                    {<a name="line.71"></a>
+<FONT color="green">072</FONT>                        voidExit( methodName );<a name="line.72"></a>
+<FONT color="green">073</FONT>                    }<a name="line.73"></a>
+<FONT color="green">074</FONT>                    else<a name="line.74"></a>
+<FONT color="green">075</FONT>                    {<a name="line.75"></a>
+<FONT color="green">076</FONT>                        exit( methodName, result );<a name="line.76"></a>
+<FONT color="green">077</FONT>                    }<a name="line.77"></a>
+<FONT color="green">078</FONT>                    return result;<a name="line.78"></a>
+<FONT color="green">079</FONT>                }<a name="line.79"></a>
+<FONT color="green">080</FONT>                catch( Throwable t )<a name="line.80"></a>
+<FONT color="green">081</FONT>                {<a name="line.81"></a>
+<FONT color="green">082</FONT>                    exception( methodName, t );<a name="line.82"></a>
+<FONT color="green">083</FONT>                    throw t;<a name="line.83"></a>
+<FONT color="green">084</FONT>                }<a name="line.84"></a>
+<FONT color="green">085</FONT>            }<a name="line.85"></a>
+<FONT color="green">086</FONT>            else<a name="line.86"></a>
+<FONT color="green">087</FONT>            {<a name="line.87"></a>
+<FONT color="green">088</FONT>                return invocation.proceed();<a name="line.88"></a>
+<FONT color="green">089</FONT>            }<a name="line.89"></a>
+<FONT color="green">090</FONT>        }<a name="line.90"></a>
+<FONT color="green">091</FONT>    <a name="line.91"></a>
+<FONT color="green">092</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.92"></a>
+<FONT color="green">093</FONT>    // Other Methods<a name="line.93"></a>
+<FONT color="green">094</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.94"></a>
+<FONT color="green">095</FONT>    <a name="line.95"></a>
+<FONT color="green">096</FONT>        private void entry( String methodName, Object[] args )<a name="line.96"></a>
+<FONT color="green">097</FONT>        {<a name="line.97"></a>
+<FONT color="green">098</FONT>            StringBuffer buffer = new StringBuffer( BUFFER_SIZE );<a name="line.98"></a>
+<FONT color="green">099</FONT>            buffer.append( "BEGIN " );<a name="line.99"></a>
+<FONT color="green">100</FONT>            buffer.append( methodName );<a name="line.100"></a>
+<FONT color="green">101</FONT>            buffer.append( "(" );<a name="line.101"></a>
+<FONT color="green">102</FONT>            int count = args.length;<a name="line.102"></a>
+<FONT color="green">103</FONT>            for( int i = 0; i &lt; count; i++ )<a name="line.103"></a>
+<FONT color="green">104</FONT>            {<a name="line.104"></a>
+<FONT color="green">105</FONT>                Object arg = args[i];<a name="line.105"></a>
+<FONT color="green">106</FONT>                if( i &gt; 0 )<a name="line.106"></a>
+<FONT color="green">107</FONT>                {<a name="line.107"></a>
+<FONT color="green">108</FONT>                    buffer.append( ", " );<a name="line.108"></a>
+<FONT color="green">109</FONT>                }<a name="line.109"></a>
+<FONT color="green">110</FONT>                convert( buffer, arg );<a name="line.110"></a>
+<FONT color="green">111</FONT>            }<a name="line.111"></a>
+<FONT color="green">112</FONT>            buffer.append( ")" );<a name="line.112"></a>
+<FONT color="green">113</FONT>            log.debug( buffer.toString() );<a name="line.113"></a>
+<FONT color="green">114</FONT>        }<a name="line.114"></a>
+<FONT color="green">115</FONT>    <a name="line.115"></a>
+<FONT color="green">116</FONT>        private void convert( StringBuffer buffer, Object input )<a name="line.116"></a>
+<FONT color="green">117</FONT>        {<a name="line.117"></a>
+<FONT color="green">118</FONT>            if( input == null )<a name="line.118"></a>
+<FONT color="green">119</FONT>            {<a name="line.119"></a>
+<FONT color="green">120</FONT>                buffer.append( "&lt;null&gt;" );<a name="line.120"></a>
+<FONT color="green">121</FONT>                return;<a name="line.121"></a>
+<FONT color="green">122</FONT>            }<a name="line.122"></a>
+<FONT color="green">123</FONT>    <a name="line.123"></a>
+<FONT color="green">124</FONT>            // Primitive types, and non-object arrays<a name="line.124"></a>
+<FONT color="green">125</FONT>            // use toString().  Less than ideal for int[], etc., but<a name="line.125"></a>
+<FONT color="green">126</FONT>            // that's a lot of work for a rare case.<a name="line.126"></a>
+<FONT color="green">127</FONT>            if( !( input instanceof Object[] ) )<a name="line.127"></a>
+<FONT color="green">128</FONT>            {<a name="line.128"></a>
+<FONT color="green">129</FONT>                buffer.append( input.toString() );<a name="line.129"></a>
+<FONT color="green">130</FONT>                return;<a name="line.130"></a>
+<FONT color="green">131</FONT>            }<a name="line.131"></a>
+<FONT color="green">132</FONT>            buffer.append( "(" );<a name="line.132"></a>
+<FONT color="green">133</FONT>            buffer.append( ProxyUtils.getJavaClassName( input.getClass() ) );<a name="line.133"></a>
+<FONT color="green">134</FONT>            buffer.append( "){" );<a name="line.134"></a>
+<FONT color="green">135</FONT>            Object[] array = ( Object[] ) input;<a name="line.135"></a>
+<FONT color="green">136</FONT>            int count = array.length;<a name="line.136"></a>
+<FONT color="green">137</FONT>            for( int i = 0; i &lt; count; i++ )<a name="line.137"></a>
+<FONT color="green">138</FONT>            {<a name="line.138"></a>
+<FONT color="green">139</FONT>                if( i &gt; 0 )<a name="line.139"></a>
+<FONT color="green">140</FONT>                {<a name="line.140"></a>
+<FONT color="green">141</FONT>                    buffer.append( ", " );<a name="line.141"></a>
+<FONT color="green">142</FONT>                }<a name="line.142"></a>
+<FONT color="green">143</FONT>    <a name="line.143"></a>
+<FONT color="green">144</FONT>                // We use convert() again, because it could be a multi-dimensional array<a name="line.144"></a>
+<FONT color="green">145</FONT>                // (god help us) where each element must be converted.<a name="line.145"></a>
+<FONT color="green">146</FONT>                convert( buffer, array[i] );<a name="line.146"></a>
+<FONT color="green">147</FONT>            }<a name="line.147"></a>
+<FONT color="green">148</FONT>            buffer.append( "}" );<a name="line.148"></a>
+<FONT color="green">149</FONT>        }<a name="line.149"></a>
+<FONT color="green">150</FONT>    <a name="line.150"></a>
+<FONT color="green">151</FONT>        private void exception( String methodName, Throwable t )<a name="line.151"></a>
+<FONT color="green">152</FONT>        {<a name="line.152"></a>
+<FONT color="green">153</FONT>            StringBuffer buffer = new StringBuffer( BUFFER_SIZE );<a name="line.153"></a>
+<FONT color="green">154</FONT>            buffer.append( "EXCEPTION " );<a name="line.154"></a>
+<FONT color="green">155</FONT>            buffer.append( methodName );<a name="line.155"></a>
+<FONT color="green">156</FONT>            buffer.append( "() -- " );<a name="line.156"></a>
+<FONT color="green">157</FONT>            buffer.append( t.getClass().getName() );<a name="line.157"></a>
+<FONT color="green">158</FONT>            log.debug( buffer.toString(), t );<a name="line.158"></a>
+<FONT color="green">159</FONT>        }<a name="line.159"></a>
+<FONT color="green">160</FONT>    <a name="line.160"></a>
+<FONT color="green">161</FONT>        private void exit( String methodName, Object result )<a name="line.161"></a>
+<FONT color="green">162</FONT>        {<a name="line.162"></a>
+<FONT color="green">163</FONT>            StringBuffer buffer = new StringBuffer( BUFFER_SIZE );<a name="line.163"></a>
+<FONT color="green">164</FONT>            buffer.append( "END " );<a name="line.164"></a>
+<FONT color="green">165</FONT>            buffer.append( methodName );<a name="line.165"></a>
+<FONT color="green">166</FONT>            buffer.append( "() [" );<a name="line.166"></a>
+<FONT color="green">167</FONT>            convert( buffer, result );<a name="line.167"></a>
+<FONT color="green">168</FONT>            buffer.append( "]" );<a name="line.168"></a>
+<FONT color="green">169</FONT>            log.debug( buffer.toString() );<a name="line.169"></a>
+<FONT color="green">170</FONT>        }<a name="line.170"></a>
+<FONT color="green">171</FONT>    <a name="line.171"></a>
+<FONT color="green">172</FONT>        private void voidExit( String methodName )<a name="line.172"></a>
+<FONT color="green">173</FONT>        {<a name="line.173"></a>
+<FONT color="green">174</FONT>            StringBuffer buffer = new StringBuffer( BUFFER_SIZE );<a name="line.174"></a>
+<FONT color="green">175</FONT>            buffer.append( "END " );<a name="line.175"></a>
+<FONT color="green">176</FONT>            buffer.append( methodName );<a name="line.176"></a>
+<FONT color="green">177</FONT>            buffer.append( "()" );<a name="line.177"></a>
+<FONT color="green">178</FONT>            log.debug( buffer.toString() );<a name="line.178"></a>
+<FONT color="green">179</FONT>        }<a name="line.179"></a>
+<FONT color="green">180</FONT>    }<a name="line.180"></a>
+<FONT color="green">181</FONT>    <a name="line.181"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/LoggingInterceptor.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodFilter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodFilter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodFilter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,107 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import java.lang.reflect.Method;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    /**<a name="line.22"></a>
+<FONT color="green">023</FONT>     * A &lt;code&gt;MethodFilter&lt;/code&gt; determines whether or not a method is accepted.<a name="line.23"></a>
+<FONT color="green">024</FONT>     *<a name="line.24"></a>
+<FONT color="green">025</FONT>     * @author James Carman<a name="line.25"></a>
+<FONT color="green">026</FONT>     * @since 1.0<a name="line.26"></a>
+<FONT color="green">027</FONT>     */<a name="line.27"></a>
+<FONT color="green">028</FONT>    public interface MethodFilter<a name="line.28"></a>
+<FONT color="green">029</FONT>    {<a name="line.29"></a>
+<FONT color="green">030</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.30"></a>
+<FONT color="green">031</FONT>    // Other Methods<a name="line.31"></a>
+<FONT color="green">032</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.32"></a>
+<FONT color="green">033</FONT>    <a name="line.33"></a>
+<FONT color="green">034</FONT>        /**<a name="line.34"></a>
+<FONT color="green">035</FONT>         * Returns whether or not this filter accepts this method.<a name="line.35"></a>
+<FONT color="green">036</FONT>         * @param method the method<a name="line.36"></a>
+<FONT color="green">037</FONT>         * @return whether or not this filter accepts this method<a name="line.37"></a>
+<FONT color="green">038</FONT>         */<a name="line.38"></a>
+<FONT color="green">039</FONT>        public boolean accepts( Method method );<a name="line.39"></a>
+<FONT color="green">040</FONT>    }<a name="line.40"></a>
+<FONT color="green">041</FONT>    <a name="line.41"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodFilter.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodInterceptorAdapter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodInterceptorAdapter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodInterceptorAdapter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,155 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.aopalliance.intercept.MethodInterceptor;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.aopalliance.intercept.MethodInvocation;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.commons.proxy.Interceptor;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.commons.proxy.Invocation;<a name="line.23"></a>
+<FONT color="green">024</FONT>    <a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.lang.reflect.AccessibleObject;<a name="line.25"></a>
+<FONT color="green">026</FONT>    import java.lang.reflect.Method;<a name="line.26"></a>
+<FONT color="green">027</FONT>    <a name="line.27"></a>
+<FONT color="green">028</FONT>    /**<a name="line.28"></a>
+<FONT color="green">029</FONT>     * An adapter class to adapt AOP Alliance's {@link MethodInterceptor} interface to Commons Proxy's<a name="line.29"></a>
+<FONT color="green">030</FONT>     * {@link Interceptor} interface.<a name="line.30"></a>
+<FONT color="green">031</FONT>     *<a name="line.31"></a>
+<FONT color="green">032</FONT>     * &lt;p&gt;<a name="line.32"></a>
+<FONT color="green">033</FONT>     * &lt;b&gt;Dependencies&lt;/b&gt;:<a name="line.33"></a>
+<FONT color="green">034</FONT>     * &lt;ul&gt;<a name="line.34"></a>
+<FONT color="green">035</FONT>     *   &lt;li&gt;AOP Alliance API version 1.0 or greater&lt;/li&gt;<a name="line.35"></a>
+<FONT color="green">036</FONT>     * &lt;/ul&gt;<a name="line.36"></a>
+<FONT color="green">037</FONT>     * &lt;/p&gt;<a name="line.37"></a>
+<FONT color="green">038</FONT>     * @author James Carman<a name="line.38"></a>
+<FONT color="green">039</FONT>     * @since 1.0<a name="line.39"></a>
+<FONT color="green">040</FONT>     */<a name="line.40"></a>
+<FONT color="green">041</FONT>    public class MethodInterceptorAdapter implements Interceptor<a name="line.41"></a>
+<FONT color="green">042</FONT>    {<a name="line.42"></a>
+<FONT color="green">043</FONT>        private final MethodInterceptor methodInterceptor;<a name="line.43"></a>
+<FONT color="green">044</FONT>    <a name="line.44"></a>
+<FONT color="green">045</FONT>        public MethodInterceptorAdapter( MethodInterceptor methodInterceptor )<a name="line.45"></a>
+<FONT color="green">046</FONT>        {<a name="line.46"></a>
+<FONT color="green">047</FONT>            this.methodInterceptor = methodInterceptor;<a name="line.47"></a>
+<FONT color="green">048</FONT>        }<a name="line.48"></a>
+<FONT color="green">049</FONT>    <a name="line.49"></a>
+<FONT color="green">050</FONT>        public Object intercept( Invocation invocation ) throws Throwable<a name="line.50"></a>
+<FONT color="green">051</FONT>        {<a name="line.51"></a>
+<FONT color="green">052</FONT>            return methodInterceptor.invoke( new MethodInvocationAdapter( invocation ) );<a name="line.52"></a>
+<FONT color="green">053</FONT>        }<a name="line.53"></a>
+<FONT color="green">054</FONT>    <a name="line.54"></a>
+<FONT color="green">055</FONT>        private static class MethodInvocationAdapter implements MethodInvocation<a name="line.55"></a>
+<FONT color="green">056</FONT>        {<a name="line.56"></a>
+<FONT color="green">057</FONT>            private final Invocation invocation;<a name="line.57"></a>
+<FONT color="green">058</FONT>    <a name="line.58"></a>
+<FONT color="green">059</FONT>            public MethodInvocationAdapter( Invocation invocation )<a name="line.59"></a>
+<FONT color="green">060</FONT>            {<a name="line.60"></a>
+<FONT color="green">061</FONT>                this.invocation = invocation;<a name="line.61"></a>
+<FONT color="green">062</FONT>            }<a name="line.62"></a>
+<FONT color="green">063</FONT>    <a name="line.63"></a>
+<FONT color="green">064</FONT>            public Method getMethod()<a name="line.64"></a>
+<FONT color="green">065</FONT>            {<a name="line.65"></a>
+<FONT color="green">066</FONT>                return invocation.getMethod();<a name="line.66"></a>
+<FONT color="green">067</FONT>            }<a name="line.67"></a>
+<FONT color="green">068</FONT>    <a name="line.68"></a>
+<FONT color="green">069</FONT>            public Object[] getArguments()<a name="line.69"></a>
+<FONT color="green">070</FONT>            {<a name="line.70"></a>
+<FONT color="green">071</FONT>                return invocation.getArguments();<a name="line.71"></a>
+<FONT color="green">072</FONT>            }<a name="line.72"></a>
+<FONT color="green">073</FONT>    <a name="line.73"></a>
+<FONT color="green">074</FONT>            public Object proceed() throws Throwable<a name="line.74"></a>
+<FONT color="green">075</FONT>            {<a name="line.75"></a>
+<FONT color="green">076</FONT>                return invocation.proceed();<a name="line.76"></a>
+<FONT color="green">077</FONT>            }<a name="line.77"></a>
+<FONT color="green">078</FONT>    <a name="line.78"></a>
+<FONT color="green">079</FONT>            public Object getThis()<a name="line.79"></a>
+<FONT color="green">080</FONT>            {<a name="line.80"></a>
+<FONT color="green">081</FONT>                return invocation.getProxy();<a name="line.81"></a>
+<FONT color="green">082</FONT>            }<a name="line.82"></a>
+<FONT color="green">083</FONT>    <a name="line.83"></a>
+<FONT color="green">084</FONT>            public AccessibleObject getStaticPart()<a name="line.84"></a>
+<FONT color="green">085</FONT>            {<a name="line.85"></a>
+<FONT color="green">086</FONT>                return invocation.getMethod();<a name="line.86"></a>
+<FONT color="green">087</FONT>            }<a name="line.87"></a>
+<FONT color="green">088</FONT>        }<a name="line.88"></a>
+<FONT color="green">089</FONT>    }<a name="line.89"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/MethodInterceptorAdapter.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/SerializingInterceptor.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/SerializingInterceptor.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/SerializingInterceptor.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,140 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.Interceptor;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.commons.proxy.Invocation;<a name="line.21"></a>
+<FONT color="green">022</FONT>    <a name="line.22"></a>
+<FONT color="green">023</FONT>    import java.io.ByteArrayInputStream;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import java.io.ByteArrayOutputStream;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.io.IOException;<a name="line.25"></a>
+<FONT color="green">026</FONT>    import java.io.ObjectInputStream;<a name="line.26"></a>
+<FONT color="green">027</FONT>    import java.io.ObjectOutputStream;<a name="line.27"></a>
+<FONT color="green">028</FONT>    <a name="line.28"></a>
+<FONT color="green">029</FONT>    /**<a name="line.29"></a>
+<FONT color="green">030</FONT>     * An interceptor which makes a serialized copy of all parameters and return values.  This<a name="line.30"></a>
+<FONT color="green">031</FONT>     * is useful when testing remote services to ensure that all parameter/return types<a name="line.31"></a>
+<FONT color="green">032</FONT>     * are in fact serializable/deserializable.<a name="line.32"></a>
+<FONT color="green">033</FONT>     * @since 1.0<a name="line.33"></a>
+<FONT color="green">034</FONT>     */<a name="line.34"></a>
+<FONT color="green">035</FONT>    public class SerializingInterceptor implements Interceptor<a name="line.35"></a>
+<FONT color="green">036</FONT>    {<a name="line.36"></a>
+<FONT color="green">037</FONT>        public Object intercept(Invocation invocation) throws Throwable<a name="line.37"></a>
+<FONT color="green">038</FONT>        {<a name="line.38"></a>
+<FONT color="green">039</FONT>            Object[] arguments = invocation.getArguments();<a name="line.39"></a>
+<FONT color="green">040</FONT>            for (int i = 0; i &lt; arguments.length; i++)<a name="line.40"></a>
+<FONT color="green">041</FONT>            {<a name="line.41"></a>
+<FONT color="green">042</FONT>                arguments[i] = serializedCopy(arguments[i]);<a name="line.42"></a>
+<FONT color="green">043</FONT>            }<a name="line.43"></a>
+<FONT color="green">044</FONT>            return serializedCopy(invocation.proceed());<a name="line.44"></a>
+<FONT color="green">045</FONT>        }<a name="line.45"></a>
+<FONT color="green">046</FONT>    <a name="line.46"></a>
+<FONT color="green">047</FONT>        private Object serializedCopy(Object original)<a name="line.47"></a>
+<FONT color="green">048</FONT>        {<a name="line.48"></a>
+<FONT color="green">049</FONT>            try<a name="line.49"></a>
+<FONT color="green">050</FONT>            {<a name="line.50"></a>
+<FONT color="green">051</FONT>                final ByteArrayOutputStream bout = new ByteArrayOutputStream();<a name="line.51"></a>
+<FONT color="green">052</FONT>                final ObjectOutputStream oout = new ObjectOutputStream(bout);<a name="line.52"></a>
+<FONT color="green">053</FONT>                oout.writeObject(original);<a name="line.53"></a>
+<FONT color="green">054</FONT>                oout.close();<a name="line.54"></a>
+<FONT color="green">055</FONT>                bout.close();<a name="line.55"></a>
+<FONT color="green">056</FONT>                final ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());<a name="line.56"></a>
+<FONT color="green">057</FONT>                final ObjectInputStream oin = new ObjectInputStream(bin);<a name="line.57"></a>
+<FONT color="green">058</FONT>                final Object copy = oin.readObject();<a name="line.58"></a>
+<FONT color="green">059</FONT>                oin.close();<a name="line.59"></a>
+<FONT color="green">060</FONT>                bin.close();<a name="line.60"></a>
+<FONT color="green">061</FONT>                return copy;<a name="line.61"></a>
+<FONT color="green">062</FONT>            }<a name="line.62"></a>
+<FONT color="green">063</FONT>            catch (IOException e)<a name="line.63"></a>
+<FONT color="green">064</FONT>            {<a name="line.64"></a>
+<FONT color="green">065</FONT>                throw new RuntimeException( "Unable to make serialized copy of " +<a name="line.65"></a>
+<FONT color="green">066</FONT>                        original.getClass().getName() + " object.", e );<a name="line.66"></a>
+<FONT color="green">067</FONT>            }<a name="line.67"></a>
+<FONT color="green">068</FONT>            catch (ClassNotFoundException e)<a name="line.68"></a>
+<FONT color="green">069</FONT>            {<a name="line.69"></a>
+<FONT color="green">070</FONT>                throw new RuntimeException( "Unable to make serialized copy of " +<a name="line.70"></a>
+<FONT color="green">071</FONT>                        original.getClass().getName() + " object.", e );<a name="line.71"></a>
+<FONT color="green">072</FONT>            }<a name="line.72"></a>
+<FONT color="green">073</FONT>        }<a name="line.73"></a>
+<FONT color="green">074</FONT>    }<a name="line.74"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/SerializingInterceptor.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/PatternFilter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/PatternFilter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/PatternFilter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,138 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor.filter;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.interceptor.MethodFilter;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    import java.lang.reflect.Method;<a name="line.22"></a>
+<FONT color="green">023</FONT>    <a name="line.23"></a>
+<FONT color="green">024</FONT>    /**<a name="line.24"></a>
+<FONT color="green">025</FONT>     * A method filter implementation that returns true if the method's name matches a supplied regular expression (JDK<a name="line.25"></a>
+<FONT color="green">026</FONT>     * regex) pattern string.<a name="line.26"></a>
+<FONT color="green">027</FONT>     *<a name="line.27"></a>
+<FONT color="green">028</FONT>     * @author James Carman<a name="line.28"></a>
+<FONT color="green">029</FONT>     * @since 1.0<a name="line.29"></a>
+<FONT color="green">030</FONT>     */<a name="line.30"></a>
+<FONT color="green">031</FONT>    public class PatternFilter implements MethodFilter<a name="line.31"></a>
+<FONT color="green">032</FONT>    {<a name="line.32"></a>
+<FONT color="green">033</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.33"></a>
+<FONT color="green">034</FONT>    // Fields<a name="line.34"></a>
+<FONT color="green">035</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.35"></a>
+<FONT color="green">036</FONT>    <a name="line.36"></a>
+<FONT color="green">037</FONT>        public static String GETTER_SETTER_PATTERN = "get\\w+|set\\w+";<a name="line.37"></a>
+<FONT color="green">038</FONT>        private final String pattern;<a name="line.38"></a>
+<FONT color="green">039</FONT>    <a name="line.39"></a>
+<FONT color="green">040</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.40"></a>
+<FONT color="green">041</FONT>    // Static Methods<a name="line.41"></a>
+<FONT color="green">042</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.42"></a>
+<FONT color="green">043</FONT>    <a name="line.43"></a>
+<FONT color="green">044</FONT>        /**<a name="line.44"></a>
+<FONT color="green">045</FONT>         * Returns a {@link MethodFilter} which accepts only "getters" and "setters."<a name="line.45"></a>
+<FONT color="green">046</FONT>         *<a name="line.46"></a>
+<FONT color="green">047</FONT>         * @return a {@link MethodFilter} which accepts only "getters" and "setters."<a name="line.47"></a>
+<FONT color="green">048</FONT>         */<a name="line.48"></a>
+<FONT color="green">049</FONT>        public static MethodFilter getterSetterFilter()<a name="line.49"></a>
+<FONT color="green">050</FONT>        {<a name="line.50"></a>
+<FONT color="green">051</FONT>            return new PatternFilter( GETTER_SETTER_PATTERN );<a name="line.51"></a>
+<FONT color="green">052</FONT>        }<a name="line.52"></a>
+<FONT color="green">053</FONT>    <a name="line.53"></a>
+<FONT color="green">054</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.54"></a>
+<FONT color="green">055</FONT>    // Constructors<a name="line.55"></a>
+<FONT color="green">056</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.56"></a>
+<FONT color="green">057</FONT>    <a name="line.57"></a>
+<FONT color="green">058</FONT>        public PatternFilter( String pattern )<a name="line.58"></a>
+<FONT color="green">059</FONT>        {<a name="line.59"></a>
+<FONT color="green">060</FONT>            this.pattern = pattern;<a name="line.60"></a>
+<FONT color="green">061</FONT>        }<a name="line.61"></a>
+<FONT color="green">062</FONT>    <a name="line.62"></a>
+<FONT color="green">063</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.63"></a>
+<FONT color="green">064</FONT>    // MethodFilter Implementation<a name="line.64"></a>
+<FONT color="green">065</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.65"></a>
+<FONT color="green">066</FONT>    <a name="line.66"></a>
+<FONT color="green">067</FONT>        public boolean accepts( Method method )<a name="line.67"></a>
+<FONT color="green">068</FONT>        {<a name="line.68"></a>
+<FONT color="green">069</FONT>            return method.getName().matches( pattern );<a name="line.69"></a>
+<FONT color="green">070</FONT>        }<a name="line.70"></a>
+<FONT color="green">071</FONT>    }<a name="line.71"></a>
+<FONT color="green">072</FONT>    <a name="line.72"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/PatternFilter.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/ReturnTypeFilter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/ReturnTypeFilter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/ReturnTypeFilter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,117 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor.filter;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.interceptor.MethodFilter;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    import java.lang.reflect.Method;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import java.util.Arrays;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import java.util.Collection;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.util.HashSet;<a name="line.25"></a>
+<FONT color="green">026</FONT>    import java.util.Set;<a name="line.26"></a>
+<FONT color="green">027</FONT>    <a name="line.27"></a>
+<FONT color="green">028</FONT>    /**<a name="line.28"></a>
+<FONT color="green">029</FONT>     * Filters methods based on their return type.<a name="line.29"></a>
+<FONT color="green">030</FONT>     * @author James Carman<a name="line.30"></a>
+<FONT color="green">031</FONT>     * @since 1.0<a name="line.31"></a>
+<FONT color="green">032</FONT>     */<a name="line.32"></a>
+<FONT color="green">033</FONT>    public class ReturnTypeFilter implements MethodFilter<a name="line.33"></a>
+<FONT color="green">034</FONT>    {<a name="line.34"></a>
+<FONT color="green">035</FONT>        private final Set validReturnTypes = new HashSet();<a name="line.35"></a>
+<FONT color="green">036</FONT>    <a name="line.36"></a>
+<FONT color="green">037</FONT>        public ReturnTypeFilter( Class[] validReturnTypes )<a name="line.37"></a>
+<FONT color="green">038</FONT>        {<a name="line.38"></a>
+<FONT color="green">039</FONT>            this( Arrays.asList( validReturnTypes ) );<a name="line.39"></a>
+<FONT color="green">040</FONT>        }<a name="line.40"></a>
+<FONT color="green">041</FONT>    <a name="line.41"></a>
+<FONT color="green">042</FONT>        public ReturnTypeFilter( Collection validReturnTypes )<a name="line.42"></a>
+<FONT color="green">043</FONT>        {<a name="line.43"></a>
+<FONT color="green">044</FONT>            this.validReturnTypes.addAll( validReturnTypes );<a name="line.44"></a>
+<FONT color="green">045</FONT>        }<a name="line.45"></a>
+<FONT color="green">046</FONT>    <a name="line.46"></a>
+<FONT color="green">047</FONT>        public boolean accepts( Method method )<a name="line.47"></a>
+<FONT color="green">048</FONT>        {<a name="line.48"></a>
+<FONT color="green">049</FONT>            return validReturnTypes.contains( method.getReturnType() );<a name="line.49"></a>
+<FONT color="green">050</FONT>        }<a name="line.50"></a>
+<FONT color="green">051</FONT>    }<a name="line.51"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/ReturnTypeFilter.html
------------------------------------------------------------------------------
    svn:executable = *

Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/SimpleFilter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/SimpleFilter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/SimpleFilter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,137 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    /*<a name="line.1"></a>
+<FONT color="green">002</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<FONT color="green">003</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<FONT color="green">004</FONT>     * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<FONT color="green">005</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<FONT color="green">006</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<FONT color="green">007</FONT>     * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<FONT color="green">008</FONT>     *<a name="line.8"></a>
+<FONT color="green">009</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<FONT color="green">012</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<FONT color="green">013</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<FONT color="green">014</FONT>     * See the License for the specific language governing permissions and<a name="line.14"></a>
+<FONT color="green">015</FONT>     * limitations under the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    package org.apache.commons.proxy.interceptor.filter;<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.commons.proxy.interceptor.MethodFilter;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    import java.lang.reflect.Method;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import java.util.Arrays;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import java.util.HashSet;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.util.Set;<a name="line.25"></a>
+<FONT color="green">026</FONT>    <a name="line.26"></a>
+<FONT color="green">027</FONT>    /**<a name="line.27"></a>
+<FONT color="green">028</FONT>     * A simple method filter implementation that merely returns true if the method's name is in a set of accepted names.<a name="line.28"></a>
+<FONT color="green">029</FONT>     *<a name="line.29"></a>
+<FONT color="green">030</FONT>     * @author James Carman<a name="line.30"></a>
+<FONT color="green">031</FONT>     * @since 1.0<a name="line.31"></a>
+<FONT color="green">032</FONT>     */<a name="line.32"></a>
+<FONT color="green">033</FONT>    public class SimpleFilter implements MethodFilter<a name="line.33"></a>
+<FONT color="green">034</FONT>    {<a name="line.34"></a>
+<FONT color="green">035</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.35"></a>
+<FONT color="green">036</FONT>    // Fields<a name="line.36"></a>
+<FONT color="green">037</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.37"></a>
+<FONT color="green">038</FONT>    <a name="line.38"></a>
+<FONT color="green">039</FONT>        private final Set methodNames;<a name="line.39"></a>
+<FONT color="green">040</FONT>    <a name="line.40"></a>
+<FONT color="green">041</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.41"></a>
+<FONT color="green">042</FONT>    // Constructors<a name="line.42"></a>
+<FONT color="green">043</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.43"></a>
+<FONT color="green">044</FONT>    <a name="line.44"></a>
+<FONT color="green">045</FONT>        /**<a name="line.45"></a>
+<FONT color="green">046</FONT>         * Creates a simple filter that accepts no methods.<a name="line.46"></a>
+<FONT color="green">047</FONT>         */<a name="line.47"></a>
+<FONT color="green">048</FONT>        public SimpleFilter()<a name="line.48"></a>
+<FONT color="green">049</FONT>        {<a name="line.49"></a>
+<FONT color="green">050</FONT>            this.methodNames = new HashSet();<a name="line.50"></a>
+<FONT color="green">051</FONT>        }<a name="line.51"></a>
+<FONT color="green">052</FONT>    <a name="line.52"></a>
+<FONT color="green">053</FONT>        /**<a name="line.53"></a>
+<FONT color="green">054</FONT>         * Creates a simple filter that accepts methods matching the supplied names.<a name="line.54"></a>
+<FONT color="green">055</FONT>         * @param methodNames the names<a name="line.55"></a>
+<FONT color="green">056</FONT>         */<a name="line.56"></a>
+<FONT color="green">057</FONT>        public SimpleFilter( String[] methodNames )<a name="line.57"></a>
+<FONT color="green">058</FONT>        {<a name="line.58"></a>
+<FONT color="green">059</FONT>            this.methodNames = new HashSet( Arrays.asList( methodNames ) );<a name="line.59"></a>
+<FONT color="green">060</FONT>        }<a name="line.60"></a>
+<FONT color="green">061</FONT>    <a name="line.61"></a>
+<FONT color="green">062</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.62"></a>
+<FONT color="green">063</FONT>    // MethodFilter Implementation<a name="line.63"></a>
+<FONT color="green">064</FONT>    //----------------------------------------------------------------------------------------------------------------------<a name="line.64"></a>
+<FONT color="green">065</FONT>    <a name="line.65"></a>
+<FONT color="green">066</FONT>        public boolean accepts( Method method )<a name="line.66"></a>
+<FONT color="green">067</FONT>        {<a name="line.67"></a>
+<FONT color="green">068</FONT>            return methodNames.contains( method.getName() );<a name="line.68"></a>
+<FONT color="green">069</FONT>        }<a name="line.69"></a>
+<FONT color="green">070</FONT>    }<a name="line.70"></a>
+<FONT color="green">071</FONT>    <a name="line.71"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>

Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/interceptor/filter/SimpleFilter.html
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message