Examples of LogicalPath


Examples of org.springframework.roo.project.LogicalPath

        // 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

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

Examples of org.springframework.roo.project.LogicalPath

    @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

Examples of org.springframework.roo.project.LogicalPath

        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

Examples of org.springframework.roo.project.LogicalPath

                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

Examples of org.springframework.roo.project.LogicalPath

     * 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

Examples of org.springframework.roo.project.LogicalPath

    @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

Examples of org.springframework.roo.project.LogicalPath

    @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

Examples of org.springframework.roo.project.LogicalPath

    @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

Examples of org.springframework.roo.project.LogicalPath

    @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
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.