|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.musicontroller.DJFactory
public class DJFactory
Factory for DJ objects. The factory will create a new DJ, equip it with a candidate selector and a song selector. The factory will also try to load and apply the user properties to the new DJ and its components.
| Constructor Summary | |
|---|---|
DJFactory()
|
|
| Method Summary | |
|---|---|
DJ |
create(java.lang.Long userid)
Creates a DJ object. |
CandidateSelector |
getCandidateSelector()
Getter for the candidate selector. |
MusiController |
getMusiController()
Getter for the MusiController object. |
void |
setCandidateSelector(CandidateSelector selector)
Setter for the candidate selector. |
void |
setMusiController(MusiController controller)
Setter for the MusiController object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DJFactory()
| Method Detail |
|---|
public DJ create(java.lang.Long userid)
userid - The id of the user the Dj will play songs for.
public MusiController getMusiController()
public void setMusiController(MusiController controller)
controller - The MusiController object.public CandidateSelector getCandidateSelector()
public void setCandidateSelector(CandidateSelector selector)
selector - The candidate selector.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||