Extension SDK 10.1.2

oracle.ide.model
Class Factory

java.lang.Object
  extended byoracle.ide.model.Factory
Direct Known Subclasses:
ElementFactory, NodeFactory

public abstract class Factory
extends java.lang.Object

The Factory interface define contants used by the element factories. In general, these contants indicate when elements are created, cached, and uncached. In addition this class provides support for notifying observers of a factory when object are created, cached, and uncached.


Nested Class Summary
protected static class Factory.RecognizerList
           
 
Field Summary
static int NODE_CACHED
          Update message sent when a node is cached by a factory.
static int NODE_CREATED
          Update message sent when a node is created by a factory.
static int NODE_UNCACHED
          Update message sent when a node is uncached by a factory.
 
Constructor Summary
Factory()
           
 
Method Summary
static void attach(Observer observer, java.lang.Class clazz)
          Associates the specified observer with the given clazz.
static void detach(Observer observer, java.lang.Class clazz)
          Removes the specified observer from the given clazz list of observers.
protected static void notify(Element element, int msgID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_CREATED

public static final int NODE_CREATED
Update message sent when a node is created by a factory.


NODE_CACHED

public static final int NODE_CACHED
Update message sent when a node is cached by a factory.


NODE_UNCACHED

public static final int NODE_UNCACHED
Update message sent when a node is uncached by a factory.

Constructor Detail

Factory

public Factory()
Method Detail

attach

public static void attach(Observer observer,
                          java.lang.Class clazz)
Associates the specified observer with the given clazz. Every time an instance of clazz is cached in the node factory, a NODE_CACHED notification is broadcast to the observer. The clazz should be the class of node and not of the data. The reason for this is that calling Node.getData() may break lazy loading for some nodes.


detach

public static void detach(Observer observer,
                          java.lang.Class clazz)
Removes the specified observer from the given clazz list of observers.


notify

protected static void notify(Element element,
                             int msgID)

Extension SDK

 

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