Examples of ItdTypeDetails


Examples of org.springframework.roo.classpath.details.ItdTypeDetails

            // By this point we have a valid MetadataItem, but it might not
            // contain any members for the resulting ITD etc

            // Handle the management of the ITD file
            boolean deleteItdFile = false;
            final ItdTypeDetails itdTypeDetails = metadata
                    .getMemberHoldingTypeDetails();

            if (itdTypeDetails == null) {
                // The ITD has no members
                deleteItdFile = true;
View Full Code Here

Examples of org.springframework.roo.classpath.details.ItdTypeDetails

            // It's not for an ITD, or there's something wrong with it
            return;
        }

        // Get the details of the ITD
        final ItdTypeDetails itdTypeDetails = ((ItdTypeDetailsProvidingMetadataItem) metadata)
                .getMemberHoldingTypeDetails();
        if (itdTypeDetails == null) {
            return;
        }
View Full Code Here

Examples of org.springframework.roo.classpath.details.ItdTypeDetails

                .thenReturn(alreadyHasVersionField);
        final SerializableMetadata metadata = new SerializableMetadata(
                METADATA_ID, mockAspectName, mockGovernor);

        // Invoke
        final ItdTypeDetails itd = metadata.getItdTypeDetails();

        // Check
        assertEquals(alreadySerializable ? 0 : 1, itd.getImplementsTypes()
                .size());
        assertEquals(alreadyHasVersionField ? 0 : 1, itd.getDeclaredFields()
                .size());
    }
View Full Code Here

Examples of org.springframework.roo.classpath.details.ItdTypeDetails

                return;
            }

            // Let's ensure we have some ITD type details to actually work with
            final ItdTypeDetailsProvidingMetadataItem itdMetadata = (ItdTypeDetailsProvidingMetadataItem) metadataItem;
            final ItdTypeDetails itdTypeDetails = itdMetadata
                    .getMemberHoldingTypeDetails();
            if (itdTypeDetails == null) {
                return;
            }

            final String localMid = formBackingObjectTypesToLocalMids
                    .get(itdTypeDetails.getGovernor().getName());
            if (localMid != null) {
                metadataService.evictAndGet(localMid);
            }
            return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.