Package org.springframework.roo.project

Examples of org.springframework.roo.project.LogicalPath


        // Extract out the metadata provider class (we need this later to
        // extract just the Path it is located in)
        final String providesType = MetadataIdentificationUtils
                .getMetadataClass(memberHoldingTypeDetails
                        .getDeclaredByMetadataId());
        final LogicalPath path = PhysicalTypeIdentifierNamingUtils.getPath(
                providesType,
                memberHoldingTypeDetails.getDeclaredByMetadataId());
        // Produce the local MID we're going to use to make the request
        return createLocalIdentifier(governorType, path);
    }
View Full Code Here


        T parentMetadata = null;
        ClassOrInterfaceTypeDetails superCid = child.getSuperclass();
        while (parentMetadata == null && superCid != null) {
            final String superCidPhysicalTypeIdentifier = superCid
                    .getDeclaredByMetadataId();
            final LogicalPath path = PhysicalTypeIdentifier
                    .getPath(superCidPhysicalTypeIdentifier);
            final String superCidLocalIdentifier = createLocalIdentifier(
                    superCid.getName(), path);
            parentMetadata = (T) metadataService.get(superCidLocalIdentifier);
            superCid = superCid.getSuperclass();
View Full Code Here

        // A physical Java type has changed, and determine what the
        // corresponding local metadata identification string would have been
        final JavaType javaType = PhysicalTypeIdentifier
                .getJavaType(upstreamDependency);
        final LogicalPath path = PhysicalTypeIdentifier
                .getPath(upstreamDependency);
        return createLocalIdentifier(javaType, path);
    }
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = JsfApplicationBeanMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = JsfApplicationBeanMetadata
                .getPath(metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = JsfConverterMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = JsfConverterMetadata
                .getPath(metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = getType(metadataIdentificationString);
        final LogicalPath path = PhysicalTypeIdentifierNamingUtils.getPath(
                PROVIDES_TYPE_STRING, metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = JsonMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = JsonMetadata
                .getPath(metadataIdentificationString);
        final String physicalTypeIdentifier = PhysicalTypeIdentifier
                .createIdentifier(javaType, path);
        return physicalTypeIdentifier;
    }
View Full Code Here

            final PhysicalTypeMetadata governorPhysicalTypeMetadata,
            final String itdFilename) {
        // Acquire bean info (we need getters details, specifically)
        final JavaType javaType = JsonMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = JsonMetadata
                .getPath(metadataIdentificationString);

        // We need to parse the annotation, if it is not present we will simply
        // get the default annotation values
        final JsonAnnotationValues annotationValues = new JsonAnnotationValues(
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = IdentifierMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = IdentifierMetadata
                .getPath(metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
View Full Code Here

        // We know governor type details are non-null and can be safely cast
        final JavaType javaType = IdentifierMetadata
                .getJavaType(metadataIdentificationString);
        final List<Identifier> identifierServiceResult = getIdentifiersForType(javaType);

        final LogicalPath path = PhysicalTypeIdentifierNamingUtils
                .getPath(metadataIdentificationString);
        if (projectOperations.isProjectAvailable(path.getModule())) {
            // If the project itself changes, we want a chance to refresh this
            // item
            metadataDependencyRegistry.registerDependency(
                    ProjectMetadata.getProjectIdentifier(path.getModule()),
                    metadataIdentificationString);
        }

        return new IdentifierMetadata(metadataIdentificationString, aspectName,
                governorPhysicalTypeMetadata, annotationValues,
View Full Code Here

TOP

Related Classes of org.springframework.roo.project.LogicalPath

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.