001    package railo.runtime.reflection.pairs;
002    
003    import java.lang.reflect.Method;
004    
005    
006    /**
007     * Hold a pair of method and parameter to invoke
008     */
009    public final class MethodParameterPair {
010            
011            private Method method;
012            private Object[] parameters;
013            
014            /**
015             * constructor of the pair Object
016             * @param method
017             * @param parameters
018             */
019            public MethodParameterPair(Method method, Object[] parameters) {
020                    this.method=method;
021                    this.parameters=parameters;
022                    method.setAccessible(true);
023            }
024            
025            /**
026             * returns the Method
027             * @return returns the Method
028             */
029            public Method getMethod() {
030                    return method;
031            }
032            
033            /**
034             * returns the Parameters
035             * @return returns the Parameters
036             */
037            public Object[] getParameters() {
038                    return parameters;
039            }
040            
041    }