|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectovm.polyd.Factory
public abstract class Factory
Used to create manually new instances of the desired dispatcher.
Use a Factory
to build dispatchers manually,
rather than using annotations.
This class is not normally accessed directly, and it is of use
only when using the pre-5.0
version of PolyD. To create a dispatcher manually, first create
a Descriptor
to specify all the characteristics
of the desired dispatcher. When the Descriptor
is registered, a Factory
is generated, that can
then be used to produce new dispatchers.
The bodies must be equal, in number and class, to the list
supplied when building the Descriptor
.
Descriptor
Method Summary | |
---|---|
java.lang.Object |
getDispatcher1(java.lang.Object a)
If you have only one body, use this method to create the new dispatcher. |
java.lang.Object |
getDispatcher2(java.lang.Object a,
java.lang.Object b)
If you have two bodies, use this method to create the new dispatcher. |
java.lang.Object |
getDispatcher3(java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
If you have three bodies, use this method to create the new dispatcher. |
java.lang.Object |
getDispatcher4(java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d)
If you have four bodies, use this method to create the new dispatcher. |
java.lang.Object |
getDispatcherN(java.lang.Object[] a)
If you have more than four bodies, use this method to create the new dispatcher. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object getDispatcher1(java.lang.Object a)
a
- the body
Descriptor
.public java.lang.Object getDispatcher2(java.lang.Object a, java.lang.Object b)
a
- the first bodyb
- the second body
Descriptor
.public java.lang.Object getDispatcher3(java.lang.Object a, java.lang.Object b, java.lang.Object c)
a
- the first bodyb
- the second bodyc
- the third body
Descriptor
.public java.lang.Object getDispatcher4(java.lang.Object a, java.lang.Object b, java.lang.Object c, java.lang.Object d)
a
- the first bodyb
- the second bodyc
- the third bodyd
- the fourth body
Descriptor
.public java.lang.Object getDispatcherN(java.lang.Object[] a)
a
- the array of bodies
Descriptor
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |