|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.model.DependencyCache
public final class DependencyCache
Caches the dependencies between all the projects in an Application.
This is useful when you want to find downstream dependencies - that is, projects that depend on a given project. To do so, you need to look at the dependencies of all the projects in the Application to see which ones depend on the project in question. This can take some time, so this class improves performance by caching the results. The cache is updated whenever dependencies are changed, or a project is added to or removed from the Application. Currently, the cache is stored in memory and not persisted to disk. So the cache must be rebuilt every time JDeveloper is restarted.
Note that calling this class could cause the dependency cache to be built. Therefore, this class should not be used on the UI event thread, as this would block the UI while the cache is built.
Method Summary | |
---|---|
java.util.Collection<Project> |
getDownstreamProjects(Project project) Get the downstream projects that directly depend on the given project. |
static DependencyCache |
getInstance(Context context) Get the DependencyCache for the given context. |
java.util.Collection<Project> |
getProjectsUsing(Context context, java.lang.String... fqClassNames) Uses dependency information to determine which projects in the Application could refer to one or more of the Java classes with the given fully qualified names. |
java.util.Collection<Project> |
getUpstreamProjects(Project project) Get the upstream projects that the given project directly depends on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DependencyCache getInstance(Context context)
context
- the contextpublic java.util.Collection<Project> getUpstreamProjects(Project project) throws java.lang.InterruptedException
project
- the projectjava.lang.InterruptedException
- if the calling thread is interruptedpublic java.util.Collection<Project> getDownstreamProjects(Project project) throws java.lang.InterruptedException
project
- the projectjava.lang.InterruptedException
- if the calling thread is interruptedpublic java.util.Collection<Project> getProjectsUsing(Context context, java.lang.String... fqClassNames) throws java.lang.InterruptedException
context
- the IDE contextfqClassNames
- the fully qualified class namesjava.lang.InterruptedException
- if the calling thread is interrupted
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |