|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.behavior.factory.GenericBehaviorFactory
public class GenericBehaviorFactory
Generic behavior factory which can produce serially behaviors of the class specified at construction.
Constructor Summary | |
---|---|
GenericBehaviorFactory(java.lang.Class<? extends Behavior> behaviorClass,
java.lang.Object... argumentsForBehavior)
Constructs a generic behavior factory which can produce behaviors of the specified class and with the specified arguments common to all produced behaviors. |
Method Summary | |
---|---|
Behavior |
createBehavior(java.lang.Object... arguments)
Creates a behavior with the help of optional arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericBehaviorFactory(java.lang.Class<? extends Behavior> behaviorClass, java.lang.Object... argumentsForBehavior) throws MonomeException
behaviorClass
- Class object that denotes the type of behaviors that will be produced by this factory.argumentsForBehavior
- Optional arguments that can be used for the behaviors factoring.
These arguments must be specified in a good order so that a constructor is defined for the
specified behavior class with specified arguments.
MonomeException
- When no constructor is found for the specified class and specified
arguments in the same order.Method Detail |
---|
public Behavior createBehavior(java.lang.Object... arguments) throws MonomeException
createBehavior
in interface BehaviorFactory
arguments
- Optional arguments that can help the behavior factoring.
Note that this kind of factory does not use these arguments.
MonomeException
- When the behavior factoring can't operate successfully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |