org.springframework.roo.classpath.itd
Class ItdFileDeletionService
java.lang.Object
org.springframework.roo.classpath.itd.ItdFileDeletionService
- All Implemented Interfaces:
- org.springframework.roo.file.monitor.event.FileEventListener
@Service
public class ItdFileDeletionService
- extends Object
- implements org.springframework.roo.file.monitor.event.FileEventListener
Listens for FileMetadata
and automatically deletes any ITD that should not exist
due to the non-existence of the PhysicalTypeMetadata
that the ITD would have been
introduced into.
This service will only delete files matching the syntax *_Roo_*.aj, and then only if the
leftmost wildcard represents a filename that does not have a .java file in the same directory.
For example, if the file src/main/java/com/foo/Bar_Roo_Hello.aj was detected as existing,
it will be deleted unless src/main/java/com/foo/Bar.java also presently exists.
- Since:
- 1.0
- Author:
- Ben Alex
Method Summary |
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 |
ItdFileDeletionService
public ItdFileDeletionService()
onFileEvent
public void onFileEvent(org.springframework.roo.file.monitor.event.FileEvent fileEvent)
- Specified by:
onFileEvent
in interface org.springframework.roo.file.monitor.event.FileEventListener
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.