Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.model
Class DependableFactory

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


public final class DependableFactory
extends java.lang.Object

A factory to discover and create Dependencies to Elements.

The factory offers the following services:

  1. Given a starting Element (the parent), this factory can create and return one or more DiscoveredDependable objects, each of which represent dependable end-points within that Element.
  2. Given an Element and its parent, the factory can create a Dependable object for that Element.
  3. Given a Dependable it can return its serialized HashStructure form.

The DependableFactory.Params context adapter can be used to pass additional parameters to the factory via the Context, including its parent.


Nested Class Summary
static class DependableFactory.Params
           

 

Method Summary
 Dependable createDependable(Context context)
          Creates a Dependable for selected Element in the context.
 java.lang.Iterable<DiscoveredDependable> discover(Context context)
          Gets all possible DiscoveredDependable node under a parent for forming dependencies originating from another element.
static DependableFactory getInstance()
          Get the singleton instance.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getInstance

public static DependableFactory getInstance()
Get the singleton instance.
Returns:
DependableFactory

createDependable

public Dependable createDependable(Context context)
Creates a Dependable for selected Element in the context. The Context should contain the following:
parent - the containing folder or owner of the Element.
origin - the source from where the dependency is originating.

For example, if a dependency is from ProjectA to ProjectB, then origin would ProjectA, Element would be the ProjectB, parent would be the Workspace for ProjectB.

Returns:
a Dependable object, or null if it could not be constructed for the given Context.

discover

public java.lang.Iterable<DiscoveredDependable> discover(Context context)
Gets all possible DiscoveredDependable node under a parent for forming dependencies originating from another element.

The Context should contain the following:
element - the root element under which dependables are to be discovered. parent - the containing folder or owner of the Element.
origin - the source from where the dependency is originating.

Use the DependableFactory.Params context adapter to set parameters in the Context.


Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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