net.sourceforge.esw.graph.proxy
Class InterfaceNodeFacadeFactory

java.lang.Object
  |
  +--net.sourceforge.esw.graph.proxy.InterfaceNodeFacadeFactory

public class InterfaceNodeFacadeFactory
extends java.lang.Object

Creational Factory for creation of InterfaceNodeFacade instances.

Utilizes elements of the Factory Design Pattern.

Examples:

    INode node = NodeFactory.createNode();
    // fill in data for the node instance...

    MyInterface mi;
    mi = ( MyInterface ) InterfaceNodeFacadeFactory.createFacade( node,
                                                                  MyInterface.class )
    // use mi instance as needed...
 

See Also:
NodeFactory, InterfaceNodeFacade

Constructor Summary
InterfaceNodeFacadeFactory()
           
 
Method Summary
static java.lang.Object createFacade(INode aNode, java.lang.Class aInterface)
          Creates a new Proxy using a InterfaceNodeFacade against the specified INode instance and Interface declaration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceNodeFacadeFactory

public InterfaceNodeFacadeFactory()
Method Detail

createFacade

public static java.lang.Object createFacade(INode aNode,
                                            java.lang.Class aInterface)
Creates a new Proxy using a InterfaceNodeFacade against the specified INode instance and Interface declaration.
Parameters:
aNode - the INode instance to wrap by the specified Class Interface using the InterfaceNodeFacade.
aInterface - the Interface in which to wrap the specified INode instance.


Copyright 2002 Free Software Foundation. All Rights Reserved.