Extension SDK 10.1.2

oracle.jdeveloper.model
Class ProjectDependencyFactory

java.lang.Object
  extended byoracle.jdeveloper.model.ProjectDependencyFactory

public final class ProjectDependencyFactory
extends java.lang.Object

ProjectDependencyFactory class. Responsible for creating objects a project can depend on. In general, objects a project depends on are dealt with first by commands such as compilation, deployment, etc..


Method Summary
static void cache(Dependable dependable)
          Caches the specified Dependable.
static Dependable find(Element source)
          Finds Dependable that encapsulates the source object.
static Dependable find(Element source, Folder owner)
          Finds Dependable that encapsulates the source object contained by the specified owner.
static Dependable[] findAll(Element source)
          Returns all Dependables associated with the given source.
static Dependable findOrCreate(Element source, Folder owner)
          Finds or creates a Dependable that encapsulates the source object.
static boolean hasFactory(Element source)
          Returns true if a factory has been registered with the given key.
static void registerFactory(DependableRecognizer factory)
          Registers a specific DependableRecognizer that is used to instanciate a dependable object.
static void removeFactory(DependableRecognizer factory)
          Removes the factory from the factories registry.
static void uncache(Dependable dependable)
          Uncaches the specified Dependable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerFactory

public static void registerFactory(DependableRecognizer factory)
Registers a specific DependableRecognizer that is used to instanciate a dependable object.


removeFactory

public static void removeFactory(DependableRecognizer factory)
Removes the factory from the factories registry.


hasFactory

public static boolean hasFactory(Element source)
Returns true if a factory has been registered with the given key.


findOrCreate

public static Dependable findOrCreate(Element source,
                                      Folder owner)
                               throws java.lang.IllegalAccessException,
                                      java.lang.InstantiationException
Finds or creates a Dependable that encapsulates the source object. The owner is the folder containing the source. If the source object is null or a DependableRecognizer is not found, null is returned.

Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

find

public static Dependable find(Element source)
Finds Dependable that encapsulates the source object. If a DependableRecognizer is not found, null is returned.


find

public static Dependable find(Element source,
                              Folder owner)
Finds Dependable that encapsulates the source object contained by the specified owner.


findAll

public static Dependable[] findAll(Element source)
Returns all Dependables associated with the given source.


cache

public static void cache(Dependable dependable)
Caches the specified Dependable.


uncache

public static void uncache(Dependable dependable)
Uncaches the specified Dependable.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.