@Service public class OCCChecksumMetadataProvider extends Object implements org.springframework.roo.classpath.itd.ItdTriggerBasedMetadataProvider, org.springframework.roo.metadata.MetadataNotificationListener
| Constructor and Description |
|---|
OCCChecksumMetadataProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cContext) |
void |
addMetadataTrigger(org.springframework.roo.model.JavaType javaType)
Registers an additional
JavaType that will trigger metadata
registration. |
protected String |
createLocalIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.LogicalPath path) |
protected void |
deactivate(org.osgi.service.component.ComponentContext context) |
org.springframework.roo.metadata.MetadataItem |
get(String metadataIdentificationString) |
org.springframework.roo.process.manager.FileManager |
getFileManager() |
protected String |
getGovernorPhysicalTypeIdentifier(String metadataIdentificationString) |
String |
getIdForPhysicalJavaType(String physicalJavaTypeIdentifier) |
String |
getItdUniquenessFilenameSuffix() |
org.springframework.roo.classpath.scanner.MemberDetailsScanner |
getMemberDetailsScanner() |
protected OCCChecksumMetadata |
getMetadata(String metadataIdentificationString,
org.springframework.roo.model.JavaType aspectName,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata,
String itdFilename) |
org.springframework.roo.metadata.MetadataDependencyRegistry |
getMetadataDependencyRegistry() |
org.springframework.roo.metadata.MetadataService |
getMetadataService() |
org.springframework.roo.classpath.persistence.PersistenceMemberLocator |
getPersistenceMemberLocator() |
String |
getProvidesType() |
org.springframework.roo.classpath.TypeManagementService |
getTypeManagementService() |
protected boolean |
isIgnoreTriggerAnnotations() |
void |
notify(String upstreamDependency,
String downstreamDependency) |
void |
removeMetadataTrigger(org.springframework.roo.model.JavaType javaType)
Removes a
JavaType metadata trigger registration. |
void |
setDependsOnGovernorBeingAClass(boolean governorBeingAClass)
If set to true (default is true), ensures the governor type details
represent a class.
|
void |
setDependsOnGovernorTypeDetailAvailability(boolean governorTypeDetail)
If set to true (default is true), ensures subclass not called unless the
governor type details are available.
|
protected void |
setIgnoreTriggerAnnotations(boolean ignoreTriggerAnnotations) |
protected void activate(org.osgi.service.component.ComponentContext cContext)
protected void deactivate(org.osgi.service.component.ComponentContext context)
protected String createLocalIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.LogicalPath path)
public String getItdUniquenessFilenameSuffix()
getItdUniquenessFilenameSuffix in interface org.springframework.roo.classpath.itd.ItdMetadataProviderpublic String getProvidesType()
getProvidesType in interface org.springframework.roo.metadata.MetadataProviderprotected String getGovernorPhysicalTypeIdentifier(String metadataIdentificationString)
protected OCCChecksumMetadata getMetadata(String metadataIdentificationString, org.springframework.roo.model.JavaType aspectName, org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata, String itdFilename)
public final void notify(String upstreamDependency, String downstreamDependency)
notify in interface org.springframework.roo.metadata.MetadataNotificationListenerpublic void addMetadataTrigger(org.springframework.roo.model.JavaType javaType)
JavaType that will trigger metadata
registration.addMetadataTrigger in interface org.springframework.roo.classpath.TriggerBasedMetadataProviderjavaType - the type-level annotation to detect that will cause
metadata creation (required)public void removeMetadataTrigger(org.springframework.roo.model.JavaType javaType)
JavaType metadata trigger registration. If the type was
never registered, the method returns without an error.removeMetadataTrigger in interface org.springframework.roo.classpath.TriggerBasedMetadataProviderjavaType - to remove (required)protected boolean isIgnoreTriggerAnnotations()
protected void setIgnoreTriggerAnnotations(boolean ignoreTriggerAnnotations)
public final org.springframework.roo.metadata.MetadataItem get(String metadataIdentificationString)
get in interface org.springframework.roo.metadata.MetadataProviderpublic final String getIdForPhysicalJavaType(String physicalJavaTypeIdentifier)
getIdForPhysicalJavaType in interface org.springframework.roo.classpath.itd.ItdMetadataProviderpublic void setDependsOnGovernorTypeDetailAvailability(boolean governorTypeDetail)
governorTypeDetail - true means governor type details must be
availablepublic void setDependsOnGovernorBeingAClass(boolean governorBeingAClass)
setDependsOnGovernorTypeDetailAvailability(boolean) must also be
true to ensure this can be relied upon.governorBeingAClass - true means governor type detail must represent
a classpublic org.springframework.roo.metadata.MetadataDependencyRegistry getMetadataDependencyRegistry()
public org.springframework.roo.metadata.MetadataService getMetadataService()
public org.springframework.roo.process.manager.FileManager getFileManager()
public org.springframework.roo.classpath.scanner.MemberDetailsScanner getMemberDetailsScanner()
public org.springframework.roo.classpath.persistence.PersistenceMemberLocator getPersistenceMemberLocator()
public org.springframework.roo.classpath.TypeManagementService getTypeManagementService()
Copyright © 2010–2015 General Directorate for Information Technologies (DGTI) of the Regional Ministry of Finance and Public Administration of the Generalitat Valenciana.. All rights reserved.