com.sapportals.wcm.rendering.base

Class AbstractFactory

java.lang.Object
  extended by com.sapportals.wcm.rendering.base.AbstractFactory
All Implemented Interfaces:
IClassLoaderRegistryListener, IFactoryInfoProvider
Direct Known Subclasses:
CollectionRendererFactory, ResourceRendererFactory

Deprecated. As of NetWeaver 7.1

public abstract class AbstractFactory
extends Object
implements IFactoryInfoProvider, IClassLoaderRegistryListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sapportals.wcm.rendering.base.IFactoryInfoProvider
IFactoryInfoProvider.MappingInformation
 
Field Summary
protected  IRenderObjectInfo.RenderObjectCategory category
          Deprecated.  
protected  IParameterName classkey
          Deprecated.  
protected  String configclass
          Deprecated.  
protected  String configplugin
          Deprecated.  
static String CONFIGURATION_FORMAT_LIST
          Deprecated.  
static String CONFIGURATION_FORMAT_TABLE
          Deprecated.  
static String CONFIGURATION_FORMAT_TABLE_NO_HEADER
          Deprecated.  
protected  String default_config
          Deprecated.  
protected  String default508_config
          Deprecated.  
protected  String default508class
          Deprecated.  
protected  String defaultclass
          Deprecated.  
protected  String descriptiveName
          Deprecated.  
protected  boolean uninitialized
          Deprecated.  
 
Constructor Summary
AbstractFactory()
          Deprecated.  
 
Method Summary
 void classLoaderAdded(String id, ClassLoader newLoader)
          Deprecated. As of NetWeaver 7.1
 void classLoaderReplaced(String id, ClassLoader newLoader, ClassLoader oldLoader)
          Deprecated. As of NetWeaver 7.1
protected  String getConfiguration(String format)
          Deprecated. As of NetWeaver 7.1
 long getLastReloadTime()
          Deprecated. As of NetWeaver 7.1
protected  ILayoutObject getLayoutObject(IProxy proxy, IResource outerResource, IResource resource, Hashtable table, IFlavor flavor, boolean requires508)
          Deprecated. As of NetWeaver 7.1
protected  ILayoutObject getLayoutObject(IProxy proxy, ITypedResourceList resourcelist, Hashtable table, IFlavor flavor, boolean requires508)
          Deprecated. As of NetWeaver 7.1
 List getMappings(Locale locale)
          Deprecated. As of NetWeaver 7.1
 Status getStatus()
          Deprecated. As of NetWeaver 7.1
protected  void initialize()
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.wcm.rendering.base.IFactoryInfoProvider
getFactoryName
 

Field Detail

uninitialized

protected boolean uninitialized
Deprecated. 

CONFIGURATION_FORMAT_TABLE

public static final String CONFIGURATION_FORMAT_TABLE
Deprecated. 
See Also:
Constant Field Values

CONFIGURATION_FORMAT_TABLE_NO_HEADER

public static final String CONFIGURATION_FORMAT_TABLE_NO_HEADER
Deprecated. 
See Also:
Constant Field Values

CONFIGURATION_FORMAT_LIST

public static final String CONFIGURATION_FORMAT_LIST
Deprecated. 
See Also:
Constant Field Values

category

protected IRenderObjectInfo.RenderObjectCategory category
Deprecated. 

configplugin

protected String configplugin
Deprecated. 

configclass

protected String configclass
Deprecated. 

defaultclass

protected String defaultclass
Deprecated. 

default508class

protected String default508class
Deprecated. 

default_config

protected String default_config
Deprecated. 

default508_config

protected String default508_config
Deprecated. 

classkey

protected IParameterName classkey
Deprecated. 

descriptiveName

protected String descriptiveName
Deprecated. 
Constructor Detail

AbstractFactory

public AbstractFactory()
Deprecated. 
Method Detail

getLayoutObject

protected ILayoutObject getLayoutObject(IProxy proxy,
                                        IResource outerResource,
                                        IResource resource,
                                        Hashtable table,
                                        IFlavor flavor,
                                        boolean requires508)
                                 throws com.sapportals.wcm.WcmException
Deprecated. As of NetWeaver 7.1

This method is used by the classes that extend the AbstractFactory. This class holds a map of ILayoutObject. It uses the ICustomizingController to retrieve the best match for the given parameters. The ICustomizingController returns the best fitting result or - if none could be found - the default value, that was supplied. This returned value is just the alias for the needed ILayoutController. The ILayoutObject that is mapped on this alias will be returned. If the value returned by the ICustomizingController is not known to the AbstractFactory or the class that is mapped on this alias cannot be instantiated an error is logged and the default ILayoutObject is returned.

Parameters:
resource - the resource that the ILayoutObject is needed for
table - the parameters coming from the URL, including the iView settings
flavor - if several ILayoutObject are available for this resource,
requires508 - flag, if the ILayoutObject returned must support 508-conform rendering. the flavor specifies which one to take.
Returns:
ILayoutObject a new instance of the ILayoutObject that best matches the given parameters. If 508-conform rendering is required and the ILayoutObject retrieved by the above described procedure does not support this, the default 508-renderer specified will be returned instead.
Throws:
com.sapportals.wcm.WcmException

getLayoutObject

protected ILayoutObject getLayoutObject(IProxy proxy,
                                        ITypedResourceList resourcelist,
                                        Hashtable table,
                                        IFlavor flavor,
                                        boolean requires508)
                                 throws com.sapportals.wcm.WcmException
Deprecated. As of NetWeaver 7.1

Throws:
com.sapportals.wcm.WcmException

initialize

protected void initialize()
                   throws com.sapportals.wcm.WcmException
Deprecated. As of NetWeaver 7.1

This method is called when the class, that extends AbstractFactory, is instantiated for the first time. It uses the ConfigurationFramework to retrieve the ILayoutObjects and their settings from the present configuration. When this method is called at a later point of time (e.g. when an update-event from the configuration framework is fired, the existing ILayoutObjects and settings are deleted and reloaded from the configuration. When reloading, the old configuration will be kept until the complete reloading has been finished. At that time, the new configuration will replace the existing one. If exceptions or errors occured when reloading the configuration, the old configuration will be removed anyways and only the default classes will be available.

Throws:
com.sapportals.wcm.WcmException - thrown when the configuration-framework throws any kind of exception. If this happens, all classes, mapping etc. that have been read out are reset again. Only the default ILayoutObject and the default ILayoutObject for 508-rendering that are set in the class that extends this AbstractFactory are available. This information is logged with attribute . If classes specified in the IConfigurable returned from the Configuration Framework do not exist or do not implement the ILayoutObject interface, the exception is caught and the information is logged with attribute .

getConfiguration

protected String getConfiguration(String format)
Deprecated. As of NetWeaver 7.1

returns a formatted list of all configured ILayoutObjects and their supported parameters and default values


classLoaderAdded

public void classLoaderAdded(String id,
                             ClassLoader newLoader)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IClassLoaderRegistryListener
Notify a subscriber for newly added class loader

Specified by:
classLoaderAdded in interface IClassLoaderRegistryListener
Parameters:
id - the ID of the application being registered with CRT
newLoader - the class loader of the application

classLoaderReplaced

public void classLoaderReplaced(String id,
                                ClassLoader newLoader,
                                ClassLoader oldLoader)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IClassLoaderRegistryListener
Notify a subscriber whenever a registered class loader is replaced.

Specified by:
classLoaderReplaced in interface IClassLoaderRegistryListener
Parameters:
id - the ID of the application being registered with CRT
newLoader - the new class loader
oldLoader - the old class loader

getMappings

public List getMappings(Locale locale)
Deprecated. As of NetWeaver 7.1

Description of the Method

Specified by:
getMappings in interface IFactoryInfoProvider
Parameters:
parm1 - Description of the param
Returns:
a list that must only contain IFactoryInfoProvider.MappingInformation, must not be null

getStatus

public Status getStatus()
Deprecated. As of NetWeaver 7.1

Specified by:
getStatus in interface IFactoryInfoProvider
Returns:
the aggregated status of the factory. If, e.g., there have been errors creating a class defined in the config, the factory should return Status.ERROR

getLastReloadTime

public long getLastReloadTime()
Deprecated. As of NetWeaver 7.1

Specified by:
getLastReloadTime in interface IFactoryInfoProvider
Returns:
the time of the last reload of the config by this factory. Expects a format such as returned by System.currentTimeMillis(). An implementing class might also return -1 to indicate, that no information is available.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2011 SAP AG Complete Copyright Notice