public class ERPFactory
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ERPFactory() |
Modifier and Type | Method and Description |
---|---|
static <ERPTYPE extends ERPInterface> |
getInterface(java.lang.Class<ERPTYPE> type)
Returns the ERP interface for the given interface type with a
null
servlet or thread context. |
static <ERPTYPE extends ERPInterface> |
getInterface(java.lang.Class<ERPTYPE> type,
FlashServletContext ctx)
Returns the ERP interface for the given interface type with the given
servlet or thread context.
|
static <ERPOBJ extends ERPObject<?>> |
getObject(java.lang.Class<ERPOBJ> objcls)
Returns the ERP object for the given object class.
|
private static final long serialVersionUID
public static <ERPTYPE extends ERPInterface> ERPTYPE getInterface(java.lang.Class<ERPTYPE> type)
null
servlet or thread context.
CLASSES THAT HAVE ACCESS TO THE FlashServet.Context
SHOULD NOT
INVOKE THIS METHOD BUT SHOULD INSTEAD INVOKE THE getInterface()
METHOD CONTAINED WITHIN THE CONTEXT.
type
- (Class) The type for the desired ERP interface. Must be
one of the constants defined by the ERP
class.null
if unable to
create the requested interface or if no interface is defined
for the given type.public static <ERPTYPE extends ERPInterface> ERPTYPE getInterface(java.lang.Class<ERPTYPE> type, FlashServletContext ctx)
CLASSES THAT HAVE ACCESS TO THE FlashServet.Context
SHOULD NOT
INVOKE THIS METHOD BUT SHOULD INSTEAD INVOKE THE getInterface()
METHOD CONTAINED WITHIN THE CONTEXT.
type
- (Class) The type for the desired ERP interface. Must be
one of the constants defined by the ERP
class.ctx
- (FlashServletContext) The current servlet or thread context.null
if unable to
create the requested interface or if no interface is defined
for the given type.public static <ERPOBJ extends ERPObject<?>> ERPOBJ getObject(java.lang.Class<ERPOBJ> objcls)
Example:
erpobj.MyObject.class=com.dpslink.somepackage.YourObject
If MyObject.class is passed to this method, the class actually
created would be YourObject. If no matching property exists for
MyObject.class, then MyObject would be created.
objcls
- (Class) The class for the desired object.null
if unable to
create the requested object. If no object class is defined
in properties, the object for the supplied class is created.