Package org.springframework.roo.project

Examples of org.springframework.roo.project.LogicalPath


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


        return getPhysicalTypeCanonicalPath(PhysicalTypeIdentifier
                .createIdentifier(javaType, path));
    }

    public String getPhysicalTypeCanonicalPath(final String physicalTypeId) {
        final LogicalPath logicalPath = PhysicalTypeIdentifier
                .getPath(physicalTypeId);
        final JavaType javaType = PhysicalTypeIdentifier
                .getJavaType(physicalTypeId);
        final Pom pom = projectOperations.getPomFromModuleName(logicalPath
                .getModule());
        final String canonicalFilePath = pom.getPathLocation(logicalPath
                .getPath()) + javaType.getRelativeFileName();
        if (fileManager.exists(canonicalFilePath)) {
            typeCache.cacheTypeAgainstModule(pom, javaType);
            typeCache.cacheFilePathAgainstTypeIdentifier(canonicalFilePath,
                    physicalTypeId);
View Full Code Here

    public String getPhysicalTypeIdentifier(final JavaType type) {
        final PhysicalPath containingPhysicalPath = getPhysicalPath(type);
        if (containingPhysicalPath == null) {
            return null;
        }
        final LogicalPath logicalPath = containingPhysicalPath.getLogicalPath();
        return PhysicalTypeIdentifier.createIdentifier(type, logicalPath);
    }
View Full Code Here

                javaType.getRelativeFileName(), "");
        reducedPath = StringUtils.stripEnd(reducedPath, File.separator);

        for (final PhysicalPath physicalPath : module.getPhysicalPaths()) {
            if (physicalPath.getLocationPath().startsWith(reducedPath)) {
                final LogicalPath path = physicalPath.getLogicalPath();
                physicalTypeIdentifier = MetadataIdentificationUtils.create(
                        PhysicalTypeIdentifier.class.getName(), path.getName()
                                + "?" + javaType.getFullyQualifiedTypeName());
                break;
            }
        }
        typeCache.cacheFilePathAgainstTypeIdentifier(fileCanonicalPath,
View Full Code Here

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

    return PhysicalTypeIdentifier.createIdentifier(javaType, path);
  }

  private JavaSymbolName getIdentifierAccessorMethodName(
      final FieldMetadata field, final String metadataIdentificationString) {
    final LogicalPath path = PhysicalTypeIdentifier.getPath(field
        .getDeclaredByMetadataId());
    final String moduleNme = path.getModule();
    if (projectOperations.isProjectAvailable(moduleNme)
        || !projectOperations.isFeatureInstalled(FeatureNames.GAE)) {
      return null;
    }
    // We are not interested if the field is annotated with
View Full Code Here

    }

    private String getLocalMid(final String physicalTypeId) {
        final JavaType typeName = PhysicalTypeIdentifier
                .getJavaType(physicalTypeId);
        final LogicalPath typePath = PhysicalTypeIdentifier
                .getPath(physicalTypeId);
        return GwtRequestMetadata.createIdentifier(typeName, typePath);
    }
View Full Code Here

    private ClassOrInterfaceTypeDetails getGovernor(
            final String metadataIdentificationString) {
        final JavaType governorTypeName = GwtRequestMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath governorTypePath = GwtRequestMetadata
                .getPath(metadataIdentificationString);
        final String physicalTypeId = PhysicalTypeIdentifier.createIdentifier(
                governorTypeName, governorTypePath);
        return typeLocationService.getTypeDetails(physicalTypeId);
    }
View Full Code Here

                    new JavaSymbolName("value"),
                    invokedType.getFullyQualifiedTypeName());
            serviceAttributeValues.add(stringAttributeValue);

            // Specify the locator that GWT will use to find it
            final LogicalPath requestLogicalPath = PhysicalTypeIdentifier
                    .getPath(request.getDeclaredByMetadataId());
            final JavaType serviceLocator = gwtTypeService
                    .getServiceLocator(requestLogicalPath.getModule());
            final StringAttributeValue locatorAttributeValue = new StringAttributeValue(
                    new JavaSymbolName("locator"),
                    serviceLocator.getFullyQualifiedTypeName());
            serviceAttributeValues.add(locatorAttributeValue);
        }
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.