|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.container.batch.BatchContainerFactory
Class BatchContainerFactory provides "well-known" access to operations
for instantiating objects associated with BatchContainers. Class BatchContainerFactory
does not really manufacture objects, it defers this to an instance of
BatchContainerFactoryIfc. This way a set of "well-known" or global operations
are available to pgorammers and yet a polymorphic set of actual factories
can be used.
Supported API: true
Extendable: false
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static BatchContainerFactoryIfc |
defaultDelegate
|
private static String |
defaultFactoryName
|
private static BatchContainerFactoryIfc |
delegate
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static BatchContainerFactory |
factory
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
BatchContainerFactory()
Supported API: false |
Method Summary | |
private static void |
defaultFactoryNameValidate(String a_DefaultFactoryName)
|
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
static BatchContainerFactoryIfc |
getBatchContainerFactoryIfc()
Operation to obtain the real BatchContainerFactory. |
protected static String |
getDefaultFactoryName()
Gets the value of the attribute: defaultFactoryName; String class name to break dependency on impl package. |
static BatchContainerFactoryIfc |
getDelegate()
Gets the object for the association that plays role: delegate. |
private static BatchContainerFactoryIfc |
getDelegate(String requestor,
String selector)
|
static AttributedRoleBatchContainer |
instantiateAttributedRoleBatchContainer(TransactionContainer txnContainer,
String name,
String assocName,
String roleName,
Object fromObj)
Factory method used to create AttributedRoleBatchContainers. |
static BatchContainer |
instantiateGeneralBatchContainer(TransactionContainer txnContainer,
String name)
Factory method used to create BatchContainers. |
static RoleBatchContainer |
instantiateRoleBatchContainer(TransactionContainer txnContainer,
String name,
String assocName,
String roleName,
Object fromObj)
Factory method used to create RoleBatchContainers. |
static TransactionContainer |
instantiateTransactionContainer()
Factory method used to create TransactionContainers. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BatchContainerFactory thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
static void |
setBatchContainerFactoryIfc(BatchContainerFactoryIfc factory)
Operation used to specify the real BatchContainerFactory. |
protected static void |
setDefaultFactoryName(String a_DefaultFactoryName)
Sets the value of the attribute: defaultFactoryName; String class name to break dependency on impl package. |
static void |
setDelegate(BatchContainerFactoryIfc a_Delegate)
Sets the object for the association that plays role: delegate. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static String defaultFactoryName
private static BatchContainerFactory factory
private static BatchContainerFactoryIfc delegate
private ApplicationContext applicationContext
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static BatchContainerFactoryIfc defaultDelegate
Constructor Detail |
public BatchContainerFactory()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BatchContainerFactory thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected static String getDefaultFactoryName()
protected static void setDefaultFactoryName(String a_DefaultFactoryName) throws WTPropertyVetoException
a_DefaultFactoryName
-
WTPropertyVetoException
private static void defaultFactoryNameValidate(String a_DefaultFactoryName) throws WTPropertyVetoException
a_DefaultFactoryName
-
WTPropertyVetoException
public static BatchContainerFactoryIfc getDelegate()
public static void setDelegate(BatchContainerFactoryIfc a_Delegate)
a_Delegate
- public static TransactionContainer instantiateTransactionContainer()
public static BatchContainer instantiateGeneralBatchContainer(TransactionContainer txnContainer, String name)
txnContainer
- name
-
public static RoleBatchContainer instantiateRoleBatchContainer(TransactionContainer txnContainer, String name, String assocName, String roleName, Object fromObj)
txnContainer
- name
- assocName
- roleName
- fromObj
-
public static AttributedRoleBatchContainer instantiateAttributedRoleBatchContainer(TransactionContainer txnContainer, String name, String assocName, String roleName, Object fromObj)
txnContainer
- name
- assocName
- roleName
- fromObj
-
public static BatchContainerFactoryIfc getBatchContainerFactoryIfc()
public static void setBatchContainerFactoryIfc(BatchContainerFactoryIfc factory)
factory
- public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
private static BatchContainerFactoryIfc getDelegate(String requestor, String selector)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |