private void appendMethods(final boolean interfaceMethod) { final List<? extends MethodMetadata> methods = itdTypeDetails.getDeclaredMethods(); if (methods == null || methods.isEmpty()) { return; } content = true; writeMethods(methods, true, interfaceMethod); }
@Override protected String getLocalMidToRequest(final ItdTypeDetails itdTypeDetails) { // Determine the governor for this ITD, and whether any DOD metadata is // even hoping to hear about changes to that JavaType and its ITDs final JavaType governor = itdTypeDetails.getName(); for (final JavaType type : itdTypeDetails.getGovernor().getLayerEntities()) { final String localMidType = entityToDodMidMap.get(type); if (localMidType != null) { return localMidType; } } final String localMid = entityToDodMidMap.get(governor); if (localMid == null) { // No DOD is interested in this JavaType, so let's move on return null; } // We have some DOD metadata, so let's check if we care if any methods // match our requirements for (final MethodMetadata method : itdTypeDetails.getDeclaredMethods()) { if (BeanInfoUtils.isMutatorMethod(method)) { // A DOD cares about the JavaType, and an ITD offers a method // likely of interest, so let's formally trigger it to run. // Note that it will re-scan and discover this ITD, and register // a direct dependency on it for the future. return localMid; } } return null; }
private void appendMethods(final boolean interfaceMethod) { final List<? extends MethodMetadata> methods = itdTypeDetails.getDeclaredMethods(); if (methods == null || methods.isEmpty()) { return; } content = true; writeMethods(methods, true, interfaceMethod); }
@Override protected String getLocalMidToRequest(final ItdTypeDetails itdTypeDetails) { // Determine the governor for this ITD, and whether any DOD metadata is // even hoping to hear about changes to that JavaType and its ITDs final JavaType governor = itdTypeDetails.getName(); for (final JavaType type : itdTypeDetails.getGovernor().getLayerEntities()) { final String localMidType = entityToDodMidMap.get(type); if (localMidType != null) { return localMidType; } } final String localMid = entityToDodMidMap.get(governor); if (localMid == null) { // No DOD is interested in this JavaType, so let's move on return null; } // We have some DOD metadata, so let's check if we care if any methods // match our requirements for (final MethodMetadata method : itdTypeDetails.getDeclaredMethods()) { if (BeanInfoUtils.isMutatorMethod(method)) { // A DOD cares about the JavaType, and an ITD offers a method // likely of interest, so let's formally trigger it to run. // Note that it will re-scan and discover this ITD, and register // a direct dependency on it for the future. return localMid; } } return null; }