iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/rmi/marshal/strategy/StubStrategy.java
public static StubStrategy forMethod(String[] paramTypes,
                                         String[] excepIds,
                                         String[] excepTypes,
                                         String retvalType,
                                         ClassLoader cl) {
        // This "factory method" exists just because I have found it easier
        // to invoke a static method (rather than invoking operator new)
        // from a stub class dynamically assembled by an instance of
        // org.jboss.proxy.ProxyAssembler.

        return new StubStrategy(paramTypes, excepIds,
                excepTypes, retvalType, cl);
    }
public static StubStrategy forMethod(String[] paramTypes,
                                         String[] excepIds,
                                         String[] excepTypes,
                                         String retvalType,
                                         ClassLoader cl) {
        // This "factory method" exists just because I have found it easier
        // to invoke a static method (rather than invoking operator new)
        // from a stub class dynamically assembled by an instance of
        // org.jboss.proxy.ProxyAssembler.

        return new StubStrategy(paramTypes, excepIds,
                excepTypes, retvalType, cl);
    }
Returns an <code>StubStrategy</code> for a method, given descriptions
of the method parameters, exceptions, and return value. Parameter and
return value descriptions are "marshaller abbreviated names".

@param paramTypes a string array with marshaller abbreviated names for
the method parameters
@param excepIds   a string array with the CORBA repository ids of the
exceptions thrown by the method
@param excepTypes a string array with the Java class names of the
exceptions thrown by the method
@param retvalType marshaller abbreaviated name for the return value of
the method
@param cl         a <code>ClassLoader</code> to load value classes
(if null, the current thread's context class loader
will be used)
@return an <code>StubStrategy</code> for the operation with the
parameters, exceptions, and return value specified.
@see org.wildfly.iiop.openjdk.rmi.marshal.CDRStream#abbrevFor(Class clz)