public abstract class AbstractFactory extends Object implements IFactoryInfoProvider, IClassLoaderRegistryListener
IFactoryInfoProvider.MappingInformation| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AbstractFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFactoryNameprotected boolean uninitialized
public static final String CONFIGURATION_FORMAT_TABLE
public static final String CONFIGURATION_FORMAT_TABLE_NO_HEADER
public static final String CONFIGURATION_FORMAT_LIST
protected IRenderObjectInfo.RenderObjectCategory category
protected String configplugin
protected String configclass
protected String defaultclass
protected String default508class
protected String default_config
protected String default508_config
protected IParameterName classkey
protected String descriptiveName
protected ILayoutObject getLayoutObject(IProxy proxy, IResource outerResource, IResource resource, Hashtable table, IFlavor flavor, boolean requires508) throws WcmException
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.proxy - proxyouterResource - outerResourceresource - the resource that the ILayoutObject is needed fortable - the parameters coming from the URL, including the iView settingsflavor - 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.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.WcmException - WcmExceptionprotected ILayoutObject getLayoutObject(IProxy proxy, ITypedResourceList resourcelist, Hashtable table, IFlavor flavor, boolean requires508) throws WcmException
WcmExceptionprotected void initialize()
throws WcmException
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.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 error.
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 error.protected String getConfiguration(String format)
ILayoutObjects and
their supported parameters and default valuespublic void classLoaderAdded(String id, ClassLoader newLoader)
IClassLoaderRegistryListenerclassLoaderAdded in interface IClassLoaderRegistryListenerid - the ID of the application being registered with CRTnewLoader - the class loader of the applicationpublic void classLoaderReplaced(String id, ClassLoader newLoader, ClassLoader oldLoader)
IClassLoaderRegistryListenerclassLoaderReplaced in interface IClassLoaderRegistryListenerid - the ID of the application being registered with CRTnewLoader - the new class loaderoldLoader - the old class loaderpublic List getMappings(Locale locale)
getMappings in interface IFactoryInfoProviderlocale - IFactoryInfoProvider.MappingInformation,
must not be nullpublic Status getStatus()
getStatus in interface IFactoryInfoProviderStatus.ERRORpublic long getLastReloadTime()
getLastReloadTime in interface IFactoryInfoProviderSystem.currentTimeMillis().
An implementing class might also return -1 to indicate, that
no information is available.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice