You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2014/03/19 19:25:08 UTC
svn commit: r902367 [25/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...
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/DuckTypingInvoker.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/DuckTypingInvoker.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/DuckTypingInvoker.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,160 @@
+<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.invoker;<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.Invoker;<a name="line.20"></a>
+<FONT color="green">021</FONT> import org.apache.commons.proxy.ObjectProvider;<a name="line.21"></a>
+<FONT color="green">022</FONT> <a name="line.22"></a>
+<FONT color="green">023</FONT> import java.lang.reflect.Method;<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 invoker which supports <a href="http://en.wikipedia.org/wiki/Duck_typing">&quot;duck typing&quot;</a>, meaning<a name="line.26"></a>
+<FONT color="green">027</FONT> * that it finds a matching method on the object returned from the target provider and invokes it. This class is<a name="line.27"></a>
+<FONT color="green">028</FONT> * useful for adapting an existing class to an interface it does not implement.<a name="line.28"></a>
+<FONT color="green">029</FONT> * <p><a name="line.29"></a>
+<FONT color="green">030</FONT> * <b>Example:</b><a name="line.30"></a>
+<FONT color="green">031</FONT> * </p><a name="line.31"></a>
+<FONT color="green">032</FONT> * <p><a name="line.32"></a>
+<FONT color="green">033</FONT> * <pre><a name="line.33"></a>
+<FONT color="green">034</FONT> * public class LegacyDuck // Does not implement interface!<a name="line.34"></a>
+<FONT color="green">035</FONT> * {<a name="line.35"></a>
+<FONT color="green">036</FONT> * public void quack()<a name="line.36"></a>
+<FONT color="green">037</FONT> * {<a name="line.37"></a>
+<FONT color="green">038</FONT> * // Quacking logic...<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> * <p/><a name="line.41"></a>
+<FONT color="green">042</FONT> * public interface Duck<a name="line.42"></a>
+<FONT color="green">043</FONT> * {<a name="line.43"></a>
+<FONT color="green">044</FONT> * public void quack();<a name="line.44"></a>
+<FONT color="green">045</FONT> * }<a name="line.45"></a>
+<FONT color="green">046</FONT> * <p/><a name="line.46"></a>
+<FONT color="green">047</FONT> * ObjectProvider targetProvider = new ConstantProvider(new LegacyDuck()); // Always returns a "legacy" duck<a name="line.47"></a>
+<FONT color="green">048</FONT> * DuckTypingInvoker invoker = new DuckTypingInvoker(targetProvider);<a name="line.48"></a>
+<FONT color="green">049</FONT> * Duck duck = ( Duck )proxyFactory.createInvokerProxy( invoker, new Class[] { Duck.class } );<a name="line.49"></a>
+<FONT color="green">050</FONT> * </pre><a name="line.50"></a>
+<FONT color="green">051</FONT> * </p><a name="line.51"></a>
+<FONT color="green">052</FONT> */<a name="line.52"></a>
+<FONT color="green">053</FONT> public class DuckTypingInvoker implements Invoker<a name="line.53"></a>
+<FONT color="green">054</FONT> {<a name="line.54"></a>
+<FONT color="green">055</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.55"></a>
+<FONT color="green">056</FONT> // Fields<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> private final ObjectProvider targetProvider;<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> // Constructors<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> public DuckTypingInvoker( final ObjectProvider targetProvider )<a name="line.65"></a>
+<FONT color="green">066</FONT> {<a name="line.66"></a>
+<FONT color="green">067</FONT> this.targetProvider = targetProvider;<a name="line.67"></a>
+<FONT color="green">068</FONT> }<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> // Interface Invoker<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 invoke( final Object proxy, final Method method, final Object[] arguments ) throws Throwable<a name="line.74"></a>
+<FONT color="green">075</FONT> {<a name="line.75"></a>
+<FONT color="green">076</FONT> final Object target = targetProvider.getObject();<a name="line.76"></a>
+<FONT color="green">077</FONT> final Class targetClass = target.getClass();<a name="line.77"></a>
+<FONT color="green">078</FONT> try<a name="line.78"></a>
+<FONT color="green">079</FONT> {<a name="line.79"></a>
+<FONT color="green">080</FONT> final Method targetMethod = targetClass.getMethod( method.getName(), method.getParameterTypes() );<a name="line.80"></a>
+<FONT color="green">081</FONT> if ( method.getReturnType().isAssignableFrom( targetMethod.getReturnType() ) )<a name="line.81"></a>
+<FONT color="green">082</FONT> {<a name="line.82"></a>
+<FONT color="green">083</FONT> return targetMethod.invoke( target, arguments );<a name="line.83"></a>
+<FONT color="green">084</FONT> }<a name="line.84"></a>
+<FONT color="green">085</FONT> throw new UnsupportedOperationException(<a name="line.85"></a>
+<FONT color="green">086</FONT> "Target type " + targetClass.getName() + " method has incompatible return type." );<a name="line.86"></a>
+<FONT color="green">087</FONT> }<a name="line.87"></a>
+<FONT color="green">088</FONT> catch ( NoSuchMethodException e )<a name="line.88"></a>
+<FONT color="green">089</FONT> {<a name="line.89"></a>
+<FONT color="green">090</FONT> throw new UnsupportedOperationException(<a name="line.90"></a>
+<FONT color="green">091</FONT> "Target type " + targetClass.getName() + " does not have a method matching " + method + "." );<a name="line.91"></a>
+<FONT color="green">092</FONT> }<a name="line.92"></a>
+<FONT color="green">093</FONT> }<a name="line.93"></a>
+<FONT color="green">094</FONT> }<a name="line.94"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/DuckTypingInvoker.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/InvocationHandlerAdapter.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/InvocationHandlerAdapter.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/InvocationHandlerAdapter.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,111 @@
+<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.invoker;<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.Invoker;<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.lang.reflect.InvocationHandler;<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 adapter class to adapt the JDK's {@link InvocationHandler} interface to Commons Proxy's<a name="line.26"></a>
+<FONT color="green">027</FONT> * {@link Invoker} interface.<a name="line.27"></a>
+<FONT color="green">028</FONT> *<a name="line.28"></a>
+<FONT color="green">029</FONT> * @author James Carman<a name="line.29"></a>
+<FONT color="green">030</FONT> * @since 1.0<a name="line.30"></a>
+<FONT color="green">031</FONT> */<a name="line.31"></a>
+<FONT color="green">032</FONT> public class InvocationHandlerAdapter implements Invoker<a name="line.32"></a>
+<FONT color="green">033</FONT> {<a name="line.33"></a>
+<FONT color="green">034</FONT> private final InvocationHandler invocationHandler;<a name="line.34"></a>
+<FONT color="green">035</FONT> <a name="line.35"></a>
+<FONT color="green">036</FONT> public InvocationHandlerAdapter( InvocationHandler invocationHandler )<a name="line.36"></a>
+<FONT color="green">037</FONT> {<a name="line.37"></a>
+<FONT color="green">038</FONT> this.invocationHandler = invocationHandler;<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> public Object invoke( Object proxy, Method method, Object[] arguments ) throws Throwable<a name="line.41"></a>
+<FONT color="green">042</FONT> {<a name="line.42"></a>
+<FONT color="green">043</FONT> return invocationHandler.invoke( proxy, method, arguments );<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/InvocationHandlerAdapter.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/NullInvoker.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/NullInvoker.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/NullInvoker.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,130 @@
+<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.invoker;<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.Invoker;<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.HashMap;<a name="line.23"></a>
+<FONT color="green">024</FONT> import java.util.Map;<a name="line.24"></a>
+<FONT color="green">025</FONT> <a name="line.25"></a>
+<FONT color="green">026</FONT> /**<a name="line.26"></a>
+<FONT color="green">027</FONT> * An {@link Invoker} implementation which merely returns null for all method invocations. This class is<a name="line.27"></a>
+<FONT color="green">028</FONT> * useful for scenarios where the "null object" design pattern is needed.<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 NullInvoker implements Invoker<a name="line.33"></a>
+<FONT color="green">034</FONT> {<a name="line.34"></a>
+<FONT color="green">035</FONT> private static Map primitiveValueMap = new HashMap();<a name="line.35"></a>
+<FONT color="green">036</FONT> static<a name="line.36"></a>
+<FONT color="green">037</FONT> {<a name="line.37"></a>
+<FONT color="green">038</FONT> primitiveValueMap.put( Integer.TYPE, new Integer( 0 ) );<a name="line.38"></a>
+<FONT color="green">039</FONT> primitiveValueMap.put( Long.TYPE, new Long( 0 ) );<a name="line.39"></a>
+<FONT color="green">040</FONT> primitiveValueMap.put( Short.TYPE, new Short( ( short )0 ) );<a name="line.40"></a>
+<FONT color="green">041</FONT> primitiveValueMap.put( Byte.TYPE, new Byte( ( byte )0 ) );<a name="line.41"></a>
+<FONT color="green">042</FONT> primitiveValueMap.put( Float.TYPE, new Float( 0.0f ) );<a name="line.42"></a>
+<FONT color="green">043</FONT> primitiveValueMap.put( Double.TYPE, new Double( 0.0 ) );<a name="line.43"></a>
+<FONT color="green">044</FONT> primitiveValueMap.put( Character.TYPE, new Character( ( char )0 ) );<a name="line.44"></a>
+<FONT color="green">045</FONT> primitiveValueMap.put( Boolean.TYPE, Boolean.FALSE );<a name="line.45"></a>
+<FONT color="green">046</FONT> }<a name="line.46"></a>
+<FONT color="green">047</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.47"></a>
+<FONT color="green">048</FONT> // InvocationHandler Implementation<a name="line.48"></a>
+<FONT color="green">049</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public Object invoke( Object proxy, Method method, Object[] args ) throws Throwable<a name="line.51"></a>
+<FONT color="green">052</FONT> {<a name="line.52"></a>
+<FONT color="green">053</FONT> final Class returnType = method.getReturnType();<a name="line.53"></a>
+<FONT color="green">054</FONT> if( returnType.isPrimitive() )<a name="line.54"></a>
+<FONT color="green">055</FONT> {<a name="line.55"></a>
+<FONT color="green">056</FONT> return primitiveValueMap.get( returnType );<a name="line.56"></a>
+<FONT color="green">057</FONT> }<a name="line.57"></a>
+<FONT color="green">058</FONT> else<a name="line.58"></a>
+<FONT color="green">059</FONT> {<a name="line.59"></a>
+<FONT color="green">060</FONT> return null;<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> <a name="line.64"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/NullInvoker.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/XmlRpcInvoker.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/XmlRpcInvoker.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/invoker/XmlRpcInvoker.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.invoker;<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.Invoker;<a name="line.20"></a>
+<FONT color="green">021</FONT> import org.apache.commons.proxy.exception.InvokerException;<a name="line.21"></a>
+<FONT color="green">022</FONT> import org.apache.xmlrpc.XmlRpcException;<a name="line.22"></a>
+<FONT color="green">023</FONT> import org.apache.xmlrpc.XmlRpcHandler;<a name="line.23"></a>
+<FONT color="green">024</FONT> <a name="line.24"></a>
+<FONT color="green">025</FONT> import java.lang.reflect.Method;<a name="line.25"></a>
+<FONT color="green">026</FONT> import java.util.Vector;<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> * Uses <a href="http://ws.apache.org/xmlrpc/">Apache XML-RPC</a> to invoke methods on an XML-RPC service.<a name="line.29"></a>
+<FONT color="green">030</FONT> *<a name="line.30"></a>
+<FONT color="green">031</FONT> * <p><a name="line.31"></a>
+<FONT color="green">032</FONT> * <b>Dependencies</b>:<a name="line.32"></a>
+<FONT color="green">033</FONT> * <ul><a name="line.33"></a>
+<FONT color="green">034</FONT> * <li>Apache XML-RPC version 2.0 or greater</li><a name="line.34"></a>
+<FONT color="green">035</FONT> * </ul><a name="line.35"></a>
+<FONT color="green">036</FONT> * </p><a name="line.36"></a>
+<FONT color="green">037</FONT> * @author James Carman<a name="line.37"></a>
+<FONT color="green">038</FONT> * @since 1.0<a name="line.38"></a>
+<FONT color="green">039</FONT> */<a name="line.39"></a>
+<FONT color="green">040</FONT> public class XmlRpcInvoker implements Invoker<a name="line.40"></a>
+<FONT color="green">041</FONT> {<a name="line.41"></a>
+<FONT color="green">042</FONT> private final XmlRpcHandler handler;<a name="line.42"></a>
+<FONT color="green">043</FONT> private final String handlerName;<a name="line.43"></a>
+<FONT color="green">044</FONT> <a name="line.44"></a>
+<FONT color="green">045</FONT> public XmlRpcInvoker( XmlRpcHandler handler, String handlerName )<a name="line.45"></a>
+<FONT color="green">046</FONT> {<a name="line.46"></a>
+<FONT color="green">047</FONT> this.handler = handler;<a name="line.47"></a>
+<FONT color="green">048</FONT> this.handlerName = handlerName;<a name="line.48"></a>
+<FONT color="green">049</FONT> }<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public Object invoke( Object proxy, Method method, Object[] args ) throws Throwable<a name="line.51"></a>
+<FONT color="green">052</FONT> {<a name="line.52"></a>
+<FONT color="green">053</FONT> final Object returnValue = handler.execute( handlerName + "." + method.getName(), toArgumentVector( args ) );<a name="line.53"></a>
+<FONT color="green">054</FONT> if( returnValue instanceof XmlRpcException )<a name="line.54"></a>
+<FONT color="green">055</FONT> {<a name="line.55"></a>
+<FONT color="green">056</FONT> throw new InvokerException( "Unable to execute XML-RPC call.", ( XmlRpcException )returnValue );<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> return returnValue;<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 Vector toArgumentVector( Object[] args )<a name="line.62"></a>
+<FONT color="green">063</FONT> {<a name="line.63"></a>
+<FONT color="green">064</FONT> final Vector v = new Vector();<a name="line.64"></a>
+<FONT color="green">065</FONT> for( int i = 0; i < args.length; i++ )<a name="line.65"></a>
+<FONT color="green">066</FONT> {<a name="line.66"></a>
+<FONT color="green">067</FONT> Object arg = args[i];<a name="line.67"></a>
+<FONT color="green">068</FONT> v.addElement( arg );<a name="line.68"></a>
+<FONT color="green">069</FONT> }<a name="line.69"></a>
+<FONT color="green">070</FONT> return v;<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/invoker/XmlRpcInvoker.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/BeanProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/BeanProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/BeanProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,154 @@
+<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.provider;<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.exception.ObjectProviderException;<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> * Uses <code>Class.newInstance()</code> to instantiate an object.<a name="line.24"></a>
+<FONT color="green">025</FONT> *<a name="line.25"></a>
+<FONT color="green">026</FONT> * @author James Carman<a name="line.26"></a>
+<FONT color="green">027</FONT> * @since 1.0<a name="line.27"></a>
+<FONT color="green">028</FONT> */<a name="line.28"></a>
+<FONT color="green">029</FONT> public class BeanProvider implements ObjectProvider<a name="line.29"></a>
+<FONT color="green">030</FONT> {<a name="line.30"></a>
+<FONT color="green">031</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.31"></a>
+<FONT color="green">032</FONT> // Fields<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> private Class beanClass;<a name="line.35"></a>
+<FONT color="green">036</FONT> <a name="line.36"></a>
+<FONT color="green">037</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.37"></a>
+<FONT color="green">038</FONT> // Constructors<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> public BeanProvider()<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> /**<a name="line.45"></a>
+<FONT color="green">046</FONT> * Constructs a provider which instantiates objects of the specified bean class.<a name="line.46"></a>
+<FONT color="green">047</FONT> * @param beanClass the bean class<a name="line.47"></a>
+<FONT color="green">048</FONT> */<a name="line.48"></a>
+<FONT color="green">049</FONT> public BeanProvider( Class beanClass )<a name="line.49"></a>
+<FONT color="green">050</FONT> {<a name="line.50"></a>
+<FONT color="green">051</FONT> this.beanClass = beanClass;<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> // ObjectProvider Implementation<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 Object getObject()<a name="line.58"></a>
+<FONT color="green">059</FONT> {<a name="line.59"></a>
+<FONT color="green">060</FONT> try<a name="line.60"></a>
+<FONT color="green">061</FONT> {<a name="line.61"></a>
+<FONT color="green">062</FONT> if( beanClass == null )<a name="line.62"></a>
+<FONT color="green">063</FONT> {<a name="line.63"></a>
+<FONT color="green">064</FONT> throw new ObjectProviderException( "No bean class provided." );<a name="line.64"></a>
+<FONT color="green">065</FONT> }<a name="line.65"></a>
+<FONT color="green">066</FONT> return beanClass.newInstance();<a name="line.66"></a>
+<FONT color="green">067</FONT> }<a name="line.67"></a>
+<FONT color="green">068</FONT> catch( InstantiationException e )<a name="line.68"></a>
+<FONT color="green">069</FONT> {<a name="line.69"></a>
+<FONT color="green">070</FONT> throw new ObjectProviderException( "Class " + beanClass.getName() + " is not concrete.", e );<a name="line.70"></a>
+<FONT color="green">071</FONT> }<a name="line.71"></a>
+<FONT color="green">072</FONT> catch( IllegalAccessException e )<a name="line.72"></a>
+<FONT color="green">073</FONT> {<a name="line.73"></a>
+<FONT color="green">074</FONT> throw new ObjectProviderException( "Constructor for class " + beanClass.getName() + " is not accessible.",<a name="line.74"></a>
+<FONT color="green">075</FONT> e );<a name="line.75"></a>
+<FONT color="green">076</FONT> }<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> //----------------------------------------------------------------------------------------------------------------------<a name="line.79"></a>
+<FONT color="green">080</FONT> // Getter/Setter Methods<a name="line.80"></a>
+<FONT color="green">081</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.81"></a>
+<FONT color="green">082</FONT> <a name="line.82"></a>
+<FONT color="green">083</FONT> public void setBeanClass( Class beanClass )<a name="line.83"></a>
+<FONT color="green">084</FONT> {<a name="line.84"></a>
+<FONT color="green">085</FONT> this.beanClass = beanClass;<a name="line.85"></a>
+<FONT color="green">086</FONT> }<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/BeanProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/CloningProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/CloningProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/CloningProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,149 @@
+<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.provider;<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.ProxyUtils;<a name="line.21"></a>
+<FONT color="green">022</FONT> import org.apache.commons.proxy.exception.ObjectProviderException;<a name="line.22"></a>
+<FONT color="green">023</FONT> <a name="line.23"></a>
+<FONT color="green">024</FONT> import java.lang.reflect.InvocationTargetException;<a name="line.24"></a>
+<FONT color="green">025</FONT> import java.lang.reflect.Method;<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> * Merely calls <code>clone()</code> (reflectively) on the given {@link Cloneable} object.<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 CloningProvider implements ObjectProvider<a name="line.33"></a>
+<FONT color="green">034</FONT> {<a name="line.34"></a>
+<FONT color="green">035</FONT> private final Cloneable cloneable;<a name="line.35"></a>
+<FONT color="green">036</FONT> private Method cloneMethod;<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> * Constructs a provider which returns clone copies of the specified {@link Cloneable}<a name="line.39"></a>
+<FONT color="green">040</FONT> * object.<a name="line.40"></a>
+<FONT color="green">041</FONT> * @param cloneable the object to clone<a name="line.41"></a>
+<FONT color="green">042</FONT> */<a name="line.42"></a>
+<FONT color="green">043</FONT> public CloningProvider( Cloneable cloneable )<a name="line.43"></a>
+<FONT color="green">044</FONT> {<a name="line.44"></a>
+<FONT color="green">045</FONT> this.cloneable = cloneable;<a name="line.45"></a>
+<FONT color="green">046</FONT> }<a name="line.46"></a>
+<FONT color="green">047</FONT> <a name="line.47"></a>
+<FONT color="green">048</FONT> private synchronized Method getCloneMethod()<a name="line.48"></a>
+<FONT color="green">049</FONT> {<a name="line.49"></a>
+<FONT color="green">050</FONT> if( cloneMethod == null )<a name="line.50"></a>
+<FONT color="green">051</FONT> {<a name="line.51"></a>
+<FONT color="green">052</FONT> try<a name="line.52"></a>
+<FONT color="green">053</FONT> {<a name="line.53"></a>
+<FONT color="green">054</FONT> cloneMethod = cloneable.getClass().getMethod( "clone", ProxyUtils.EMPTY_ARGUMENT_TYPES );<a name="line.54"></a>
+<FONT color="green">055</FONT> }<a name="line.55"></a>
+<FONT color="green">056</FONT> catch( NoSuchMethodException e )<a name="line.56"></a>
+<FONT color="green">057</FONT> {<a name="line.57"></a>
+<FONT color="green">058</FONT> throw new ObjectProviderException(<a name="line.58"></a>
+<FONT color="green">059</FONT> "Class " + cloneable.getClass().getName() + " does not have a public clone() method." );<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> return cloneMethod;<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> public Object getObject()<a name="line.65"></a>
+<FONT color="green">066</FONT> {<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> return getCloneMethod().invoke( cloneable, ProxyUtils.EMPTY_ARGUMENTS );<a name="line.69"></a>
+<FONT color="green">070</FONT> }<a name="line.70"></a>
+<FONT color="green">071</FONT> catch( IllegalAccessException e )<a name="line.71"></a>
+<FONT color="green">072</FONT> {<a name="line.72"></a>
+<FONT color="green">073</FONT> throw new ObjectProviderException(<a name="line.73"></a>
+<FONT color="green">074</FONT> "Class " + cloneable.getClass().getName() + " does not have a public clone() method.", e );<a name="line.74"></a>
+<FONT color="green">075</FONT> }<a name="line.75"></a>
+<FONT color="green">076</FONT> catch( InvocationTargetException e )<a name="line.76"></a>
+<FONT color="green">077</FONT> {<a name="line.77"></a>
+<FONT color="green">078</FONT> throw new ObjectProviderException(<a name="line.78"></a>
+<FONT color="green">079</FONT> "Attempt to clone object of type " + cloneable.getClass().getName() + " threw an exception.", e );<a name="line.79"></a>
+<FONT color="green">080</FONT> }<a name="line.80"></a>
+<FONT color="green">081</FONT> }<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/CloningProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ConstantProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ConstantProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ConstantProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,120 @@
+<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.provider;<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> <a name="line.21"></a>
+<FONT color="green">022</FONT> /**<a name="line.22"></a>
+<FONT color="green">023</FONT> * Always returns the same object.<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 class ConstantProvider implements ObjectProvider<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> // Fields<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> private final Object constant;<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> // Constructors<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> public ConstantProvider( Object constant )<a name="line.40"></a>
+<FONT color="green">041</FONT> {<a name="line.41"></a>
+<FONT color="green">042</FONT> this.constant = constant;<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> // ObjectProvider Implementation<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> public Object getObject()<a name="line.49"></a>
+<FONT color="green">050</FONT> {<a name="line.50"></a>
+<FONT color="green">051</FONT> return constant;<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ConstantProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/NullProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/NullProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/NullProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,103 @@
+<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.provider;<a name="line.18"></a>
+<FONT color="green">019</FONT> <a name="line.19"></a>
+<FONT color="green">020</FONT> /**<a name="line.20"></a>
+<FONT color="green">021</FONT> * Always returns null.<a name="line.21"></a>
+<FONT color="green">022</FONT> *<a name="line.22"></a>
+<FONT color="green">023</FONT> * @author James Carman<a name="line.23"></a>
+<FONT color="green">024</FONT> * @since 1.0<a name="line.24"></a>
+<FONT color="green">025</FONT> */<a name="line.25"></a>
+<FONT color="green">026</FONT> public class NullProvider extends ConstantProvider<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> // Constructors<a name="line.29"></a>
+<FONT color="green">030</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.30"></a>
+<FONT color="green">031</FONT> <a name="line.31"></a>
+<FONT color="green">032</FONT> public NullProvider()<a name="line.32"></a>
+<FONT color="green">033</FONT> {<a name="line.33"></a>
+<FONT color="green">034</FONT> super( null );<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> <a name="line.37"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/NullProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ProviderDecorator.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ProviderDecorator.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ProviderDecorator.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,122 @@
+<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.provider;<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> <a name="line.21"></a>
+<FONT color="green">022</FONT> /**<a name="line.22"></a>
+<FONT color="green">023</FONT> * Returns the result of the inner {@link ObjectProvider provider}. Subclasses can override the {@link #getObject()}<a name="line.23"></a>
+<FONT color="green">024</FONT> * method and decorate what comes back from the inner provider in some way (by {@link SingletonProvider caching it} for<a name="line.24"></a>
+<FONT color="green">025</FONT> * example). <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 ProviderDecorator implements ObjectProvider<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> protected ObjectProvider inner;<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> // Constructors<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 ProviderDecorator( ObjectProvider inner )<a name="line.42"></a>
+<FONT color="green">043</FONT> {<a name="line.43"></a>
+<FONT color="green">044</FONT> this.inner = inner;<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> //----------------------------------------------------------------------------------------------------------------------<a name="line.47"></a>
+<FONT color="green">048</FONT> // ObjectProvider Implementation<a name="line.48"></a>
+<FONT color="green">049</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public Object getObject()<a name="line.51"></a>
+<FONT color="green">052</FONT> {<a name="line.52"></a>
+<FONT color="green">053</FONT> return inner.getObject();<a name="line.53"></a>
+<FONT color="green">054</FONT> }<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/ProviderDecorator.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/SingletonProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/SingletonProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/SingletonProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,129 @@
+<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.provider;<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> <a name="line.21"></a>
+<FONT color="green">022</FONT> /**<a name="line.22"></a>
+<FONT color="green">023</FONT> * Wraps another object provider, making sure to only call it once, returning the value returned from the wrapped<a name="line.23"></a>
+<FONT color="green">024</FONT> * provider on all subsequent invocations.<a name="line.24"></a>
+<FONT color="green">025</FONT> *<a name="line.25"></a>
+<FONT color="green">026</FONT> * @author James Carman<a name="line.26"></a>
+<FONT color="green">027</FONT> * @since 1.0<a name="line.27"></a>
+<FONT color="green">028</FONT> */<a name="line.28"></a>
+<FONT color="green">029</FONT> public class SingletonProvider extends ProviderDecorator<a name="line.29"></a>
+<FONT color="green">030</FONT> {<a name="line.30"></a>
+<FONT color="green">031</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.31"></a>
+<FONT color="green">032</FONT> // Fields<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> private Object instance;<a name="line.35"></a>
+<FONT color="green">036</FONT> <a name="line.36"></a>
+<FONT color="green">037</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.37"></a>
+<FONT color="green">038</FONT> // Constructors<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> public SingletonProvider( ObjectProvider inner )<a name="line.41"></a>
+<FONT color="green">042</FONT> {<a name="line.42"></a>
+<FONT color="green">043</FONT> super( inner );<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> //----------------------------------------------------------------------------------------------------------------------<a name="line.46"></a>
+<FONT color="green">047</FONT> // ObjectProvider Implementation<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 getObject()<a name="line.50"></a>
+<FONT color="green">051</FONT> {<a name="line.51"></a>
+<FONT color="green">052</FONT> synchronized( this )<a name="line.52"></a>
+<FONT color="green">053</FONT> {<a name="line.53"></a>
+<FONT color="green">054</FONT> if( instance == null )<a name="line.54"></a>
+<FONT color="green">055</FONT> {<a name="line.55"></a>
+<FONT color="green">056</FONT> instance = super.getObject();<a name="line.56"></a>
+<FONT color="green">057</FONT> inner = null; // Garbage collection<a name="line.57"></a>
+<FONT color="green">058</FONT> }<a name="line.58"></a>
+<FONT color="green">059</FONT> }<a name="line.59"></a>
+<FONT color="green">060</FONT> return instance;<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/SingletonProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/BurlapProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/BurlapProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/BurlapProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,157 @@
+<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.provider.remoting;<a name="line.18"></a>
+<FONT color="green">019</FONT> <a name="line.19"></a>
+<FONT color="green">020</FONT> import com.caucho.burlap.client.BurlapProxyFactory;<a name="line.20"></a>
+<FONT color="green">021</FONT> import org.apache.commons.proxy.ObjectProvider;<a name="line.21"></a>
+<FONT color="green">022</FONT> import org.apache.commons.proxy.exception.ObjectProviderException;<a name="line.22"></a>
+<FONT color="green">023</FONT> <a name="line.23"></a>
+<FONT color="green">024</FONT> import java.net.MalformedURLException;<a name="line.24"></a>
+<FONT color="green">025</FONT> <a name="line.25"></a>
+<FONT color="green">026</FONT> /**<a name="line.26"></a>
+<FONT color="green">027</FONT> * Provides a burlap service object.<a name="line.27"></a>
+<FONT color="green">028</FONT> *<a name="line.28"></a>
+<FONT color="green">029</FONT> * <p><a name="line.29"></a>
+<FONT color="green">030</FONT> * <b>Dependencies</b>:<a name="line.30"></a>
+<FONT color="green">031</FONT> * <ul><a name="line.31"></a>
+<FONT color="green">032</FONT> * <li>Burlap version 2.1.7 or greater</li><a name="line.32"></a>
+<FONT color="green">033</FONT> * </ul><a name="line.33"></a>
+<FONT color="green">034</FONT> * </p><a name="line.34"></a>
+<FONT color="green">035</FONT> * @author James Carman<a name="line.35"></a>
+<FONT color="green">036</FONT> * @since 1.0<a name="line.36"></a>
+<FONT color="green">037</FONT> */<a name="line.37"></a>
+<FONT color="green">038</FONT> public class BurlapProvider implements ObjectProvider<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> // Fields<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> private Class serviceInterface;<a name="line.44"></a>
+<FONT color="green">045</FONT> private String url;<a name="line.45"></a>
+<FONT color="green">046</FONT> <a name="line.46"></a>
+<FONT color="green">047</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.47"></a>
+<FONT color="green">048</FONT> // Constructors<a name="line.48"></a>
+<FONT color="green">049</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public BurlapProvider()<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> public BurlapProvider( Class serviceInterface, String url )<a name="line.55"></a>
+<FONT color="green">056</FONT> {<a name="line.56"></a>
+<FONT color="green">057</FONT> this.serviceInterface = serviceInterface;<a name="line.57"></a>
+<FONT color="green">058</FONT> this.url = url;<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> //----------------------------------------------------------------------------------------------------------------------<a name="line.61"></a>
+<FONT color="green">062</FONT> // ObjectProvider Implementation<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> public Object getObject()<a name="line.65"></a>
+<FONT color="green">066</FONT> {<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> return new BurlapProxyFactory().create( serviceInterface, url );<a name="line.69"></a>
+<FONT color="green">070</FONT> }<a name="line.70"></a>
+<FONT color="green">071</FONT> catch( MalformedURLException e )<a name="line.71"></a>
+<FONT color="green">072</FONT> {<a name="line.72"></a>
+<FONT color="green">073</FONT> throw new ObjectProviderException( "Invalid url given.", e );<a name="line.73"></a>
+<FONT color="green">074</FONT> }<a name="line.74"></a>
+<FONT color="green">075</FONT> }<a name="line.75"></a>
+<FONT color="green">076</FONT> <a name="line.76"></a>
+<FONT color="green">077</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.77"></a>
+<FONT color="green">078</FONT> // Getter/Setter Methods<a name="line.78"></a>
+<FONT color="green">079</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.79"></a>
+<FONT color="green">080</FONT> <a name="line.80"></a>
+<FONT color="green">081</FONT> public void setServiceInterface( Class serviceInterface )<a name="line.81"></a>
+<FONT color="green">082</FONT> {<a name="line.82"></a>
+<FONT color="green">083</FONT> this.serviceInterface = serviceInterface;<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> public void setUrl( String url )<a name="line.86"></a>
+<FONT color="green">087</FONT> {<a name="line.87"></a>
+<FONT color="green">088</FONT> this.url = url;<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
Propchange: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/BurlapProvider.html
------------------------------------------------------------------------------
svn:executable = *
Added: websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/HessianProvider.html
==============================================================================
--- websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/HessianProvider.html (added)
+++ websites/production/commons/content/proper/commons-proxy/javadocs/1.0/src-html/org/apache/commons/proxy/provider/remoting/HessianProvider.html Wed Mar 19 18:25:04 2014
@@ -0,0 +1,157 @@
+<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.provider.remoting;<a name="line.18"></a>
+<FONT color="green">019</FONT> <a name="line.19"></a>
+<FONT color="green">020</FONT> import com.caucho.hessian.client.HessianProxyFactory;<a name="line.20"></a>
+<FONT color="green">021</FONT> import org.apache.commons.proxy.ObjectProvider;<a name="line.21"></a>
+<FONT color="green">022</FONT> import org.apache.commons.proxy.exception.ObjectProviderException;<a name="line.22"></a>
+<FONT color="green">023</FONT> <a name="line.23"></a>
+<FONT color="green">024</FONT> import java.net.MalformedURLException;<a name="line.24"></a>
+<FONT color="green">025</FONT> <a name="line.25"></a>
+<FONT color="green">026</FONT> /**<a name="line.26"></a>
+<FONT color="green">027</FONT> * Provides a hessian service object.<a name="line.27"></a>
+<FONT color="green">028</FONT> *<a name="line.28"></a>
+<FONT color="green">029</FONT> * <p><a name="line.29"></a>
+<FONT color="green">030</FONT> * <b>Dependencies</b>:<a name="line.30"></a>
+<FONT color="green">031</FONT> * <ul><a name="line.31"></a>
+<FONT color="green">032</FONT> * <li>Hessian version 3.0.1 or greater</li><a name="line.32"></a>
+<FONT color="green">033</FONT> * </ul><a name="line.33"></a>
+<FONT color="green">034</FONT> * </p><a name="line.34"></a>
+<FONT color="green">035</FONT> * @author James Carman<a name="line.35"></a>
+<FONT color="green">036</FONT> * @since 1.0<a name="line.36"></a>
+<FONT color="green">037</FONT> */<a name="line.37"></a>
+<FONT color="green">038</FONT> public class HessianProvider implements ObjectProvider<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> // Fields<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> private Class serviceInterface;<a name="line.44"></a>
+<FONT color="green">045</FONT> private String url;<a name="line.45"></a>
+<FONT color="green">046</FONT> <a name="line.46"></a>
+<FONT color="green">047</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.47"></a>
+<FONT color="green">048</FONT> // Constructors<a name="line.48"></a>
+<FONT color="green">049</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public HessianProvider()<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> public HessianProvider( Class serviceInterface, String url )<a name="line.55"></a>
+<FONT color="green">056</FONT> {<a name="line.56"></a>
+<FONT color="green">057</FONT> this.serviceInterface = serviceInterface;<a name="line.57"></a>
+<FONT color="green">058</FONT> this.url = url;<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> //----------------------------------------------------------------------------------------------------------------------<a name="line.61"></a>
+<FONT color="green">062</FONT> // ObjectProvider Implementation<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> public Object getObject()<a name="line.65"></a>
+<FONT color="green">066</FONT> {<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> return new HessianProxyFactory().create( serviceInterface, url );<a name="line.69"></a>
+<FONT color="green">070</FONT> }<a name="line.70"></a>
+<FONT color="green">071</FONT> catch( MalformedURLException e )<a name="line.71"></a>
+<FONT color="green">072</FONT> {<a name="line.72"></a>
+<FONT color="green">073</FONT> throw new ObjectProviderException( "Invalid url given.", e );<a name="line.73"></a>
+<FONT color="green">074</FONT> }<a name="line.74"></a>
+<FONT color="green">075</FONT> }<a name="line.75"></a>
+<FONT color="green">076</FONT> <a name="line.76"></a>
+<FONT color="green">077</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.77"></a>
+<FONT color="green">078</FONT> // Getter/Setter Methods<a name="line.78"></a>
+<FONT color="green">079</FONT> //----------------------------------------------------------------------------------------------------------------------<a name="line.79"></a>
+<FONT color="green">080</FONT> <a name="line.80"></a>
+<FONT color="green">081</FONT> public void setServiceInterface( Class serviceInterface )<a name="line.81"></a>
+<FONT color="green">082</FONT> {<a name="line.82"></a>
+<FONT color="green">083</FONT> this.serviceInterface = serviceInterface;<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> public void setUrl( String url )<a name="line.86"></a>
+<FONT color="green">087</FONT> {<a name="line.87"></a>
+<FONT color="green">088</FONT> this.url = url;<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>