|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.index.IndexManager
public abstract class IndexManager
Manages Index
instances.
Constructor Summary | |
---|---|
IndexManager() |
Method Summary | |
---|---|
abstract void |
addIndexer(java.lang.Class<? extends Indexer> indexer) Add an Indexer class which will be called for all files being indexed. |
abstract void |
addIndexer(java.lang.Class<? extends Node> nodeClass, java.lang.Class<? extends Indexer> indexer) Add an Indexer class for files with the given Node type. |
abstract Index |
getIndex(Project project) Get the index for the given project. |
abstract Index |
getIndex(Project project, ContentSet content) Get the index for the given ContentSet in the scope of the given project. |
abstract Index |
getIndex(Project project, java.net.URL url) Get the index for the given URL in the scope of the given project. |
abstract Index |
getIndex(Project project, URLPath path) Get the index for the given URLPath in the scope of the given project. |
static IndexManager |
getIndexManager() Get the IndexManager implementation. |
static void |
setIndexManager(IndexManager indexManager) Set the IndexManager implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexManager()
Method Detail |
---|
public static IndexManager getIndexManager()
IndexManager
implementation.IndexManager
implementationpublic static void setIndexManager(IndexManager indexManager)
IndexManager
implementation.indexManager
- the IndexManager
implementationpublic abstract Index getIndex(Project project)
Index.release()
when they are finished with this index.project
- the projectpublic abstract Index getIndex(Project project, ContentSet content)
ContentSet
in the scope of the given project. This can be used, for example, to get an index for a subset of the project content. It is the caller's responsibility to call Index.release()
when they are finished with this index.project
- the projectcontent
- the content setpublic abstract Index getIndex(Project project, URLPath path)
URLPath
in the scope of the given project. This can be used, for example, to index a library used by a project. Note that this method should not be used to index paths from a content set, as doing so would ignore the filters from the content set. This can result in far more files being indexed than is necessary. For content sets, use #getIndex(Project,ContentSet
). It is the caller's responsibility to call Index.release()
when they are finished with this index.project
- the projectpath
- the URL pathpublic abstract Index getIndex(Project project, java.net.URL url)
#getIndex(Project,ContentSet
). It is the caller's responsibility to call Index.release()
when they are finished with this index.project
- the projecturl
- the URLpublic abstract void addIndexer(java.lang.Class<? extends Indexer> indexer)
Indexer
class which will be called for all files being indexed.indexer
- the Indexer class to be addedpublic abstract void addIndexer(java.lang.Class<? extends Node> nodeClass, java.lang.Class<? extends Indexer> indexer)
Indexer
class for files with the given Node
type. Note that multiple indexers can be added for a given file type. They will be called in the order they were added.nodeClass
- the Node subclassindexer
- the Indexer class to be added
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |