NextApp Echo
App Container 1.1.4

nextapp.echoservlet
Class ComponentPeerFactory

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeerFactory

final class ComponentPeerFactory
extends java.lang.Object

Creates ComponentPeer objects for Components.


Field Summary
private static PeerFactory factory
          The PeerFactory used to create new ComponentPeer instances.
 
Constructor Summary
private ComponentPeerFactory()
          Non-instantiable class.
 
Method Summary
(package private) static void addAssociation(java.lang.String className, java.lang.String peerClassName)
          Adds a single Component-to-ComponentPeer association.
(package private) static void addAssociations(java.lang.String propertiesFile)
          Adds additional Component-to-ComponentPeer associations.
(package private) static ComponentPeer createComponentPeer(nextapp.echo.Component c)
          Returns a new peer for the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static final PeerFactory factory
The PeerFactory used to create new ComponentPeer instances.

Constructor Detail

ComponentPeerFactory

private ComponentPeerFactory()
Non-instantiable class.

Method Detail

createComponentPeer

static ComponentPeer createComponentPeer(nextapp.echo.Component c)
Returns a new peer for the specified component. The peer must be registered before it may be used.

Parameters:
c - The Component for which a peer is to be created.
Returns:
A ComponentPeer bound to the specified Component.

addAssociation

static void addAssociation(java.lang.String className,
                           java.lang.String peerClassName)
Adds a single Component-to-ComponentPeer association.

Parameters:
className - The fully qualified name of the Component class.
peerClassName - The fully qualified name of the ComponentPeer class.

addAssociations

static void addAssociations(java.lang.String propertiesFile)
Adds additional Component-to-ComponentPeer associations.

Parameters:
propertiesFile - The name of a properties file containing additional associations.

NextApp Echo
App Container 1.1.4