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