Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.ide.model
Class DependableFactory

java.lang.Object
  extended by oracle.ide.model.DependableFactory

public class DependableFactory
extends java.lang.Object

DependableFactory class. Responsible for creating objects an object can depend on. In general, objects depended on are dealt with first by commands such as compilation, deployment, etc..


Constructor Summary
DependableFactory()
           
 
Method Summary
 void cache(Dependable dependable)
          Caches the specified Dependable.
 Dependable find(Element source)
          Finds Dependable that encapsulates the source object.
 Dependable find(Element source, Folder owner)
          Finds Dependable that encapsulates the source object contained by the specified owner.
 Dependable[] findAll(Element source)
          Returns all Dependables associated with the given source.
 Dependable findOrCreate(Element source, Folder owner)
          Finds or creates a Dependable that encapsulates the source object.
 boolean hasFactory(Element source)
          Returns true if a factory has been registered with the given key.
 void registerFactory(DependableRecognizer factory)
          Registers a specific DependableRecognizer that is used to instanciate a dependable object.
 void removeFactory(DependableRecognizer factory)
          Removes the factory from the factories registry.
 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
 

Constructor Detail

DependableFactory

public DependableFactory()
Method Detail

registerFactory

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


removeFactory

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


hasFactory

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


findOrCreate

public 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 Dependable find(Element source)
Finds Dependable that encapsulates the source object. If a DependableRecognizer is not found, null is returned.


find

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


findAll

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


cache

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


uncache

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


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

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