|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.j2ee.deployment.common.api.SourceFileMap
public abstract class SourceFileMap
Extra file mapping service for each j2ee module. This service cover irregular source to distribution file mapping. Users of the mapping could update the mapping. Provider of the mapping has to ensure the mapping persistence. Note: the initial design is for non-static configuration file such as schema file used in CMP mapping, but it could be used to expose any kind of source-to-distribution mapping.
| Constructor Summary | |
|---|---|
SourceFileMap()
|
|
| Method Summary | |
|---|---|
abstract boolean |
add(String distributionPath,
FileObject sourceFile)
Add new mapping or update existing mapping of the given distribution path. |
abstract FileObject[] |
findSourceFile(String distributionPath)
Returns the concrete file for the given distribution path. |
static SourceFileMap |
findSourceMap(FileObject source)
Returns a source file map for the module, or null if none can be identified. |
static SourceFileMap |
findSourceMap(J2eeModule j2eeModule)
Returns a source file map for the module, or null if none can be identified. |
abstract String |
getContextName()
Return context name, typically the J2EE module project name. |
abstract File |
getDistributionPath(FileObject sourceFile)
Returns the relative path in distribution of the given concrete source file. |
abstract File |
getEnterpriseResourceDir()
Returns directory paths to repository of enterprise resource definition files. |
abstract File[] |
getEnterpriseResourceDirs()
Returns directory paths to repository of enterprise resource definition files. |
abstract FileObject[] |
getSourceRoots()
Return source roots this file mapping is operate on. |
abstract FileObject |
remove(String distributionPath)
Remove mapping for the given distribution path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceFileMap()
| Method Detail |
|---|
public abstract FileObject[] findSourceFile(String distributionPath)
distributionPath - distribution path for to find source file for.public abstract File getDistributionPath(FileObject sourceFile)
sourceFile - source file for to find the distribution path.public abstract FileObject[] getSourceRoots()
public abstract String getContextName()
public abstract File getEnterpriseResourceDir()
public abstract File[] getEnterpriseResourceDirs()
public abstract boolean add(String distributionPath,
FileObject sourceFile)
distributionPath - file path in the distribution contentsourceFile - souce concrete file object.
public abstract FileObject remove(String distributionPath)
distributionPath - file path in the distribution contentpublic static final SourceFileMap findSourceMap(FileObject source)
source - A non-null source file (java, descriptor or dbschema) to establish mapping context.
nullpublic static final SourceFileMap findSourceMap(J2eeModule j2eeModule)
j2eeModule - module for which the source file map will be returned.
null
|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||