|
||||||||||
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,
org.openide.filesystems.FileObject sourceFile)
Add new mapping or update existing mapping of the given distribution path. |
abstract org.openide.filesystems.FileObject[] |
findSourceFile(String distributionPath)
Returns the concrete file for the given distribution path. |
static SourceFileMap |
findSourceMap(javax.enterprise.deploy.model.DDBean ddbean)
Returns a source file map for the module, or null if none can be identified. |
static SourceFileMap |
findSourceMap(javax.enterprise.deploy.model.DeployableObject deployable)
Returns a source file map for the module, or null if none can be identified. |
static SourceFileMap |
findSourceMap(org.openide.filesystems.FileObject source)
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(org.openide.filesystems.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 org.openide.filesystems.FileObject[] |
getSourceRoots()
Return source roots this file mapping is operate on. |
abstract org.openide.filesystems.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 org.openide.filesystems.FileObject[] findSourceFile(String distributionPath)
distributionPath
- distribution path for to find source file for.public abstract File getDistributionPath(org.openide.filesystems.FileObject sourceFile)
distributionPath
- distribution path for to find source file for.public abstract org.openide.filesystems.FileObject[] getSourceRoots()
public abstract String getContextName()
public abstract File getEnterpriseResourceDir()
public abstract File[] getEnterpriseResourceDirs()
public abstract boolean add(String distributionPath, org.openide.filesystems.FileObject sourceFile)
distributionPath
- file path in the distribution contentsourceFile
- souce concrete file object.
public abstract org.openide.filesystems.FileObject remove(String distributionPath)
distributionPath
- file path in the distribution contentpublic static final SourceFileMap findSourceMap(org.openide.filesystems.FileObject source)
source
- A non-null source file (java, descriptor or dbschema) to establish mapping context.public static final SourceFileMap findSourceMap(javax.enterprise.deploy.model.DDBean ddbean)
ddbean
- An instance of ddbean to establish mapping context.public static final SourceFileMap findSourceMap(javax.enterprise.deploy.model.DeployableObject deployable)
ddbean
- An instance of ddbean to establish mapping context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |