/** * Returns true if the passed <code>mdbClass</code> meets the requirements set by the EJB3 spec about bean implementation * classes. The passed <code>mdbClass</code> must not be an interface and must be public and not final and not abstract. If * it passes these requirements then this method returns true. Else it returns false. * * @param mdbClass The MDB class * @return * @throws DeploymentUnitProcessingException */ public static Collection<MdbValidityStatus> assertEjbClassValidity(final ClassInfo mdbClass) throws DeploymentUnitProcessingException { Collection<MdbValidityStatus> mdbComplianceIssueList = new ArrayList<>(MdbValidityStatus.values().length); final String className = mdbClass.name().toString(); verifyModifiers(className, mdbClass.flags(), mdbComplianceIssueList); for (MethodInfo method : mdbClass.methods()) { if ("onMessage".equals(method.name())) { verifyOnMessageMethod(className, method.flags(), mdbComplianceIssueList); } if ("finalize".equals(method.name())) { EjbLogger.DEPLOYMENT_LOGGER.mdbCantHaveFinalizeMethod(className); mdbComplianceIssueList.add(MdbValidityStatus.MDB_SHOULD_NOT_HAVE_FINALIZE_METHOD); } } return mdbComplianceIssueList; }
@Override public Stream<IMethod> getMethods() { return info.methods().stream().map(m -> { return Wrappers.wrap(this, m, javadocProvider); }); }
private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException { ArrayList methods = new ArrayList(); ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName())); for (MethodInfo method : clazzInfo.methods()) { if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) { methods.add(clazz.getMethod(method.name())); } } if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) { index = IndexFactory.createIndex(clazz.getSuperclass()); return __invoke(clazz.getSuperclass(), index, comparator); } Collections.sort(methods, comparator); return methods; }
private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException { ArrayList methods = new ArrayList(); ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName())); for (MethodInfo method : clazzInfo.methods()) { if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) { methods.add(clazz.getMethod(method.name())); } } if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) { index = IndexFactory.createIndex(clazz.getSuperclass()); return __invoke(clazz.getSuperclass(), index, comparator); } Collections.sort(methods, comparator); return methods; }
List<MethodInfo> methods = definition.methods(); ArrayList<AnnotationValue> result = new ArrayList<AnnotationValue>(methods.size()); for (MethodInfo method : methods) {
for (MethodInfo method : clazz.methods()) {
byte[] mnameb = methodReference.getMethod().getBytes(StandardCharsets.UTF_8); for ( MethodInfo i : impl.methods() ) { if ( ( i.flags() & Modifier.ABSTRACT ) != 0 ) { continue;
for (MethodInfo method : clazz.methods()) {
for (MethodInfo method : clazz.methods()) {
for (MethodInfo method : clazz.methods()) {
ClassInfo classInfo = annotation.target().asClass(); for (MethodInfo methodInfo : classInfo.methods()) { if (methodInfo.hasAnnotation(HEALTH)) { StringBuilder sb = new StringBuilder();
for (MethodInfo method : clazz.methods()) { if (method.hasAnnotation(IndexFactory.BINDING_META)) {
for (MethodInfo method : clazz.methods()) { if (method.hasAnnotation(IndexFactory.BINDING_META)) {
ClassInfo classInfo = annotation.target().asClass(); for (MethodInfo methodInfo : classInfo.methods()) { if (methodInfo.hasAnnotation(HEALTH) || methodInfo.hasAnnotation(MP_HEALTH)) { StringBuilder sb = new StringBuilder();
for (MethodInfo method : interfaceInfo.methods()) {
for (MethodInfo method : interfaceInfo.methods()) {
for (MethodInfo method : interfaceInfo.methods()) {
for (MethodInfo method : interfaceInfo.methods()) {
for (MethodInfo method : interfaceInfo.methods()) {
for (MethodInfo method : interfaceInfo.methods()) {