Skip to content

Commit

Permalink
ROO-2446: Post 1.1.4.RELEASE code refactor and clean up - added deact…
Browse files Browse the repository at this point in the history
…ivate method as per other providers
  • Loading branch information
Alan Stewart committed May 23, 2011
1 parent 49bab74 commit afef7ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ protected void activate(ComponentContext context) {
addMetadataTrigger(new JavaType(RooConfigurable.class.getName()));
}

protected void deactivate(ComponentContext context) {
metadataDependencyRegistry.deregisterDependency(PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
removeMetadataTrigger(new JavaType(RooConfigurable.class.getName()));
}

protected ItdTypeDetailsProvidingMetadataItem getMetadata(String metadataIdentificationString, JavaType aspectName, PhysicalTypeMetadata governorPhysicalTypeMetadata, String itdFilename) {
return new ConfigurableMetadata(metadataIdentificationString, aspectName, governorPhysicalTypeMetadata);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ protected void activate(ComponentContext context) {
addMetadataTrigger(new JavaType(RooEditor.class.getName()));
}

protected void deactivate(ComponentContext context) {
metadataDependencyRegistry.deregisterDependency(PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
removeMetadataTrigger(new JavaType(RooEditor.class.getName()));
}

protected ItdTypeDetailsProvidingMetadataItem getMetadata(String metadataIdentificationString, JavaType aspectName, PhysicalTypeMetadata governorPhysicalTypeMetadata, String itdFilename) {
// We know governor type details are non-null and can be safely cast

Expand Down Expand Up @@ -64,8 +69,7 @@ public String getItdUniquenessFilenameSuffix() {
protected String getGovernorPhysicalTypeIdentifier(String metadataIdentificationString) {
JavaType javaType = EditorMetadata.getJavaType(metadataIdentificationString);
Path path = EditorMetadata.getPath(metadataIdentificationString);
String physicalTypeIdentifier = PhysicalTypeIdentifier.createIdentifier(javaType, path);
return physicalTypeIdentifier;
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}

protected String createLocalIdentifier(JavaType javaType, Path path) {
Expand Down

0 comments on commit afef7ca

Please sign in to comment.