WebObjects 5.4.2

com.webobjects.appserver
Class WOConstantAssociationFactory

java.lang.Object
  extended by com.webobjects.appserver.WOConstantAssociationFactory
All Implemented Interfaces:
WOAssociationFactory

public class WOConstantAssociationFactory
extends Object
implements WOAssociationFactory

Abstract implementation of WOAssociationFactory that implements creating constant and keyvalue associations. It does not handle Schemed associations. This class is meant to be subclassed to provide schemed associations in another way.

Since:
5.4

Constructor Summary
WOConstantAssociationFactory()
           
 
Method Summary
 WOAssociation createAssociation(String name, Object value)
          Default implementation calls WOAssociation.associationWithValue() or, in the case of a boolean value, uses WOConstantValueAssociation.TRUE or WOConstantValueAssociation.FALSE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOConstantAssociationFactory

public WOConstantAssociationFactory()
Method Detail

createAssociation

public WOAssociation createAssociation(String name,
                                       Object value)
                                throws WOSchemeNotSupportedException
Default implementation calls WOAssociation.associationWithValue() or, in the case of a boolean value, uses WOConstantValueAssociation.TRUE or WOConstantValueAssociation.FALSE.

Specified by:
createAssociation in interface WOAssociationFactory
Parameters:
value -
name - Name of the scheme to which the content belongs.
Returns:
WOAssociation
Throws:
WOSchemeNotSupportedException
See Also:
com.webobjects.appserver.WOAssociationFactory#createConstantAssociation(java.lang.Object)

Last updated June 2008

Copyright © 2000-2008 Apple Inc.