Package org.springframework.roo.project

Examples of org.springframework.roo.project.LogicalPath


    public boolean hasDatabaseProperties() {
        return fileManager.exists(getDatabasePropertiesPath());
    }

    public boolean isInstalledInModule(final String moduleName) {
        final LogicalPath resourcesPath = LogicalPath.getInstance(
                Path.SRC_MAIN_RESOURCES, moduleName);
        return isJpaInstallationPossible()
                && fileManager.exists(projectOperations.getPathResolver()
                        .getIdentifier(resourcesPath, PERSISTENCE_XML));
    }
View Full Code Here


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

        Validate.notNull(
                controllerTypeDetails,
                "Class or interface type details for type '%s' could not be resolved",
                controller);

        final LogicalPath path = PhysicalTypeIdentifier
                .getPath(controllerTypeDetails.getDeclaredByMetadataId());
        final String webScaffoldMetadataIdentifier = WebScaffoldMetadata
                .createIdentifier(controller, path);
        final WebScaffoldMetadata webScaffoldMetadata = (WebScaffoldMetadata) metadataService
                .get(webScaffoldMetadataIdentifier);
View Full Code Here

                jsr303Required = true;
                break;
            }
        }

        final LogicalPath path = PhysicalTypeIdentifier.getPath(cidBuilder
                .getDeclaredByMetadataId());

        if (jsr303Required) {
            // It's more likely the version below represents a later version
            // than any specified in the user's own dependency list
            projectOperations.addDependency(path.getModule(),
                    "javax.validation", "validation-api", "1.0.0.GA");
        }
        cidBuilder.addField(field);
        createOrUpdateTypeOnDisk(cidBuilder.build());
    }
View Full Code Here

     * Writes the given Maven POM to disk
     *
     * @param pom the POM to write (required)
     */
    private void writePomFile(final Document pom) {
        final LogicalPath rootPath = LogicalPath.getInstance(Path.ROOT, "");
        final MutableFile pomFile = fileManager.createFile(pathResolver
                .getIdentifier(rootPath, POM_XML));
        XmlUtils.writeXml(pomFile.getOutputStream(), pom);
    }
View Full Code Here

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

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

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

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

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = ServiceClassMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = ServiceClassMetadata
                .getPath(metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
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.