org.springframework.roo.classpath.javaparser
Class JavaParserMetadataProvider
java.lang.Object
org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider
- All Implemented Interfaces:
- org.springframework.roo.classpath.MutablePhysicalTypeMetadataProvider, org.springframework.roo.classpath.PhysicalTypeMetadataProvider, org.springframework.roo.file.monitor.event.FileEventListener, org.springframework.roo.metadata.MetadataProvider
@Service
public class JavaParserMetadataProvider
- extends Object
- implements org.springframework.roo.classpath.MutablePhysicalTypeMetadataProvider, org.springframework.roo.file.monitor.event.FileEventListener
Monitors for *.java files and produces a PhysicalTypeMetadata
for each,
also providing type creation and deleting methods.
This implementation does not support ClasspathProvidingProjectMetadata
. Whilst the
project metadata may implement this interface, the findIdentifier(JavaType)
will ignore
such paths in the current release.
- Since:
- 1.0
- Author:
- Ben Alex
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext context)
|
void |
createPhysicalType(org.springframework.roo.classpath.PhysicalTypeMetadata toCreate)
|
String |
findIdentifier(org.springframework.roo.model.JavaType javaType)
|
org.springframework.roo.metadata.MetadataItem |
get(String metadataIdentificationString)
|
String |
getProvidesType()
|
void |
onFileEvent(org.springframework.roo.file.monitor.event.FileEvent fileEvent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaParserMetadataProvider
public JavaParserMetadataProvider()
getProvidesType
public String getProvidesType()
- Specified by:
getProvidesType
in interface org.springframework.roo.metadata.MetadataProvider
activate
protected void activate(org.osgi.service.component.ComponentContext context)
findIdentifier
public String findIdentifier(org.springframework.roo.model.JavaType javaType)
- Specified by:
findIdentifier
in interface org.springframework.roo.classpath.PhysicalTypeMetadataProvider
createPhysicalType
public void createPhysicalType(org.springframework.roo.classpath.PhysicalTypeMetadata toCreate)
- Specified by:
createPhysicalType
in interface org.springframework.roo.classpath.MutablePhysicalTypeMetadataProvider
onFileEvent
public void onFileEvent(org.springframework.roo.file.monitor.event.FileEvent fileEvent)
- Specified by:
onFileEvent
in interface org.springframework.roo.file.monitor.event.FileEventListener
get
public org.springframework.roo.metadata.MetadataItem get(String metadataIdentificationString)
- Specified by:
get
in interface org.springframework.roo.metadata.MetadataProvider
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.