public class DefaultActivityFactory extends java.lang.Object implements ActivityFactory
A DefaultActivityFactory
creates new activities through
reflection on their activityClass
member variable. The factory
will attempt to construct an instance with the full set of the parameters
of the make
given that such a constructor exists. Otherwise, it
will attempt with a reduced set, and possibly an empty set of parameters where
it just expects a default constructor.
Constructor and Description |
---|
DefaultActivityFactory(java.lang.Class<? extends Activity> activityClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getActivityClass() |
Activity |
make(HyperGraphPeer thisPeer,
java.util.UUID id,
Json msg) |
public DefaultActivityFactory(java.lang.Class<? extends Activity> activityClass)
public Activity make(HyperGraphPeer thisPeer, java.util.UUID id, Json msg)
make
in interface ActivityFactory
public java.lang.Class<?> getActivityClass()