Search in sources :

Example 1 with NamedMethodInfo

use of org.apache.openejb.assembler.classic.NamedMethodInfo in project tomee by apache.

the class EjbJarInfoBuilder method toInfo.

private NamedMethodInfo toInfo(final NamedMethod method) {
    if (method == null) {
        return null;
    }
    final NamedMethodInfo info = new NamedMethodInfo();
    info.methodName = method.getMethodName();
    if (method.getMethodParams() != null) {
        info.methodParams = method.getMethodParams().getMethodParam();
    }
    return info;
}
Also used : NamedMethodInfo(org.apache.openejb.assembler.classic.NamedMethodInfo)

Example 2 with NamedMethodInfo

use of org.apache.openejb.assembler.classic.NamedMethodInfo in project tomee by apache.

the class EjbJarInfoBuilder method copyAsynchronous.

private void copyAsynchronous(final List<AsyncMethod> methods, final List<NamedMethodInfo> methodInfos) {
    for (final AsyncMethod asyncMethod : methods) {
        final NamedMethodInfo info = new NamedMethodInfo();
        info.methodName = asyncMethod.getMethodName();
        if (asyncMethod.getMethodParams() != null) {
            info.methodParams = asyncMethod.getMethodParams().getMethodParam();
        }
        methodInfos.add(info);
    }
}
Also used : AsyncMethod(org.apache.openejb.jee.AsyncMethod) NamedMethodInfo(org.apache.openejb.assembler.classic.NamedMethodInfo)

Aggregations

NamedMethodInfo (org.apache.openejb.assembler.classic.NamedMethodInfo)2 AsyncMethod (org.apache.openejb.jee.AsyncMethod)1