My bad.  The code should have been as follows to provide a generic interface 
(EnterpriseBeanMethodMapper) to be available:



class ParticularEnterpriseBeanMapper extends EnterpriseBeanMethodMapper {

void callImplementationMethod(EnterpriseBean ejbImplementationInstance
                                        , int methodIndex
                                        , Object[] arguments
                                        , /* potential objects for callback as 
statically required */) {
        // generic potential hookin calls
        ...
        switch(methodIndex) {

                case 1:
                        // method specific potential hookin calls

                        
((ParticularEnterpriseBean)ejbImplementationInstance).method((ArgumentTypeOne)agruments[0]
                                                                                
                        , (ArgumentTypeTwo)arguments[1]);       // hardcoded 
linkage - reducing memory and computation

                ...

        }
        ...
        // generic potential hookin calls
}

}

Reply via email to