@Override public void notify(String upstreamDependency, String downstreamDependency) { checkEvictCache(evaluator.evalueteForEvict(downstreamDependency)); }
public String getPhysicalTypeCanonicalPath(final JavaType javaType, final LogicalPath path) { return getPhysicalTypeCanonicalPath(PhysicalTypeIdentifier.createIdentifier(javaType, path)); }
/** * Parses the given metadata ID for the path of the user project type to * which it relates. * * @param metadataId the metadata ID to parse (must identify an instance of * {@link PhysicalTypeIdentifier#PHYSICAL_METADATA_TYPE}) * @return a non-<code>null</code> path */ public static LogicalPath getPath(final String metadataId) { return PhysicalTypeIdentifierNamingUtils.getPath(PHYSICAL_METADATA_TYPE, metadataId); }
@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); }
public static JavaType getJavaType(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getJavaType(PROVIDES_TYPE_STRING, metadataIdentificationString); }
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); }
/** * Creates a plural identifier for the given type in the given path. * * @param javaType the type for which to create the identifier (required) * @param path the path containing the type (required) * @return a valid plural metadata instance ID */ public static String createIdentifier(final JavaType javaType, final LogicalPath path) { return PhysicalTypeIdentifierNamingUtils.createIdentifier(PROVIDES_TYPE_STRING, javaType, path); }
/** * Indicates whether the given metadata ID identifies a physical Java type, * in other words an interface, class, annotation, or enum. * * @param metadataIdentificationString the metadata ID to check * @return see above */ public static boolean isValid(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.isValid(PHYSICAL_METADATA_TYPE, metadataIdentificationString); }
public LogicalPath getTypePath(final JavaType javaType) { final String physicalTypeId = getPhysicalTypeIdentifier(javaType); if (StringUtils.isBlank(physicalTypeId)) { return null; } return PhysicalTypeIdentifier.getPath(physicalTypeId); }
/** * Returns the {@link JavaType} representing the physical type of this ITD governor. * * @return the {@link JavaType} for the governor physical type. */ public JavaType getGovernorType() { return this.governorPhysicalTypeMetadata.getType(); }
@Override public Collection<ClassOrInterfaceTypeDetails> getJpaEntityFactoriesForEntity( final JavaType domainType) { return util.getValue(domainType, RooJavaType.ROO_JPA_ENTITY_FACTORY); }
private void updateTypeCache() { if (getTypeCache().getAllTypeIdentifiers().isEmpty()) { initTypeMap(); } discoverTypes(); // Update the type cache for (final String change : dirtyFiles) { cacheType(change); } dirtyFiles.clear(); }
public boolean hasModuleFeature(Pom module, ModuleFeatureName moduleFeatureName) { Validate.notNull(moduleFeatureName, "Module featured required"); Validate.notNull(module, "Module required"); ModuleFeature moduleFeature = getModuleFeature(moduleFeatureName); if (moduleFeature != null) { return moduleFeature.hasModuleFeature(module); } return false; }
public static JavaType getJavaType(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getJavaType(PROVIDES_TYPE_STRING, metadataIdentificationString); }
public static LogicalPath getPath(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getPath(PROVIDES_TYPE_STRING, metadataIdentificationString); }
public static boolean isValid(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.isValid(PROVIDES_TYPE_STRING, metadataIdentificationString); }
@Override public Collection<ClassOrInterfaceTypeDetails> getEntityProjectionsForEntity( final JavaType domainType) { return util.getValue(domainType, RooJavaType.ROO_ENTITY_PROJECTION); }
public static JavaType getJavaType(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getJavaType(PROVIDES_TYPE_STRING, metadataIdentificationString); }
public static LogicalPath getPath(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getPath(PROVIDES_TYPE_STRING, metadataIdentificationString); }
public static JavaType getJavaType(final String metadataIdentificationString) { return PhysicalTypeIdentifierNamingUtils.getJavaType(PROVIDES_TYPE_STRING, metadataIdentificationString); }