public class DefaultObjectFactory extends Object implements IMutableObjectFactory
Modifier and Type | Field and Description |
---|---|
protected Map |
ir_rt |
protected Map |
mappings |
protected Map |
rt_cr |
protected Map |
rt_ir |
Constructor and Description |
---|
DefaultObjectFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
as(Class classRef,
IResource resource) |
boolean |
isA(Class interfaceRef,
IResource resource)
Get the A attribute of the DefaultTypeCastProvider object.
|
protected boolean |
isA(Class interfaceRef,
String resourceType)
Checks if a mapping exists from resourceType to classRef.
|
Collection |
listTypes(IResource resource) |
void |
registerClass(String resourceType,
Class classRef) |
void |
registerClass(String resourceType,
Class classRef,
Vector interfaces) |
protected Map mappings
protected Map rt_cr
protected Map rt_ir
protected Map ir_rt
public boolean isA(Class interfaceRef, IResource resource) throws ResourceException
isA
in interface IObjectFactory
resource
- interfaceRef
- ResourceException
- Exception raised in failure situationpublic Object as(Class classRef, IResource resource) throws ResourceException
as
in interface IObjectFactory
classRef
- resource
- ResourceException
- Exception raised in failure situationpublic Collection listTypes(IResource resource)
listTypes
in interface IObjectFactory
resource
- public void registerClass(String resourceType, Class classRef) throws SoException
registerClass
in interface IMutableObjectFactory
resourceType
- classRef
- SoException
- Exception raised in failure situationpublic void registerClass(String resourceType, Class classRef, Vector interfaces) throws SoException
registerClass
in interface IMutableObjectFactory
resourceType
- classRef
- interfaces
- SoException
- Exception raised in failure situationAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice