SAP NetWeaver '04

com.sapportals.wcm.util.factories
Class AbstractObjectFactory.ObjectClassEntry

java.lang.Object
  |
  +--com.sapportals.wcm.util.factories.AbstractObjectFactory.ObjectClassEntry
Enclosing class:
AbstractObjectFactory

protected class AbstractObjectFactory.ObjectClassEntry
extends java.lang.Object

An object class entry represents the information about the several objects to be created by the factory.


Field Summary
protected  java.lang.reflect.Constructor m_Constructor
          the constructor to the object class.
protected  AbstractObjectFactory m_Factory
          the object classes' factory.
protected  java.lang.String m_ID
          the object classes' id.
protected  java.lang.Object m_Instance
          the single instance, if it's a singleton.
protected  boolean m_IsSingleton
          flag, if this object class should be treated as a singleton.
protected  java.util.Properties m_Properties
          the properties for this object class.
 
Constructor Summary
protected AbstractObjectFactory.ObjectClassEntry(java.lang.String id, AbstractObjectFactory factory, java.lang.reflect.Constructor constructor, java.util.Properties properties, boolean singletonFlag)
          create a new object class entry.
 
Method Summary
 boolean equals(java.lang.Object object)
          equality operator.
 java.lang.Object getObjectInstance()
          get an instance of an object from this object class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ID

protected java.lang.String m_ID
the object classes' id.

m_Factory

protected AbstractObjectFactory m_Factory
the object classes' factory.

m_Constructor

protected java.lang.reflect.Constructor m_Constructor
the constructor to the object class.

m_Properties

protected java.util.Properties m_Properties
the properties for this object class.

m_IsSingleton

protected boolean m_IsSingleton
flag, if this object class should be treated as a singleton.

m_Instance

protected java.lang.Object m_Instance
the single instance, if it's a singleton.
Constructor Detail

AbstractObjectFactory.ObjectClassEntry

protected AbstractObjectFactory.ObjectClassEntry(java.lang.String id,
                                                 AbstractObjectFactory factory,
                                                 java.lang.reflect.Constructor constructor,
                                                 java.util.Properties properties,
                                                 boolean singletonFlag)
create a new object class entry.
Parameters:
id -  
factory -  
constructor -  
properties -  
singletonFlag -  
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance()
                                   throws WcmException
get an instance of an object from this object class.
Returns:
The ObjectInstance value
Throws:
WcmException - Exception raised in failure situation

equals

public boolean equals(java.lang.Object object)
equality operator.
Overrides:
equals in class java.lang.Object
Parameters:
object -  
Returns:
 

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.