Package org.springframework.roo.metadata

Examples of org.springframework.roo.metadata.MetadataItem


            // don't care about it
            return;
        }

        // We have an instance-specific identifier; try to get its metadata
        final MetadataItem metadata = metadataService.get(upstreamDependency);

        // We don't have to worry about physical type metadata, as we monitor
        // the relevant .java once the DOD governor is first detected
        if (!(metadata instanceof ItdTypeDetailsProvidingMetadataItem)
                || !metadata.isValid()) {
            // It's not for an ITD, or there's something wrong with it
            return;
        }

        // Get the details of the ITD
View Full Code Here


                            "ITD metadata provider '%s' returned an illegal key ('%s')",
                            mp, key);

                    // Get the metadata and ensure we have ITD type details
                    // available
                    final MetadataItem metadataItem = metadataService.get(key);
                    if (metadataItem == null || !metadataItem.isValid()) {
                        continue;
                    }
                    Validate.isInstanceOf(
                            ItdTypeDetailsProvidingMetadataItem.class,
                            metadataItem,
View Full Code Here

        }
    }

    private void notify(final List<ClassOrInterfaceTypeDetails> entities) {
        for (final ClassOrInterfaceTypeDetails managedIdentifierType : getManagedIdentifiers()) {
            final MetadataItem metadataItem = metadataService
                    .evictAndGet(managedIdentifierType
                            .getDeclaredByMetadataId());
            if (metadataItem != null) {
                notifyIfRequired(metadataItem);
            }
        }

        for (final ClassOrInterfaceTypeDetails entity : entities) {
            final MetadataItem metadataItem = metadataService
                    .evictAndGet(entity.getDeclaredByMetadataId());
            if (metadataItem != null) {
                notifyIfRequired(metadataItem);
            }
        }
View Full Code Here

            // This is the generic fallback listener, ie from
            // MetadataDependencyRegistry.addListener(this) in the activate()
            // method

            // Get the metadata that just changed
            final MetadataItem metadataItem = metadataService
                    .get(upstreamDependency);

            // We don't have to worry about physical type metadata, as we
            // monitor the relevant .java once the DOD governor is first
            // detected
            if (metadataItem == null
                    || !metadataItem.isValid()
                    || !(metadataItem instanceof ItdTypeDetailsProvidingMetadataItem)) {
                // There's something wrong with it or it's not for an ITD, so
                // let's gracefully abort
                return;
            }
View Full Code Here

TOP

Related Classes of org.springframework.roo.metadata.MetadataItem

Copyright © 2018 www.massapicom. 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.