|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalAgentFactoryUser
This interface is generally intended to be a flag used by LocalAgents to indicate they request a reference to the instance of the LocalAgentFactory that instantiated them. This allows these classes to retrieve other related LocalAgents without creating additional instances of them. Why, do you ask?
Use a JFrameAgent as an example. There is a JFrameAgent in the org.safs.jvmagent package which is a subclass of the FrameAgent in the same jvmagent package. The org.safs.abbot.JFrameAgent is a subclass of this org.safs.jvmagent.JFrameAgent class. However, when the abbot.JFrameAgent wishes to invoke certain functions for component processing on a "superclass" like JComponentAgent it does not want to go up its true jvmagent superclass hierarchy, it wants to go up the abbot superclass hierarchy of which it is not a true descendant.
Consequently, this class would implement the LocalAgentFactoryUser interface and the LocalAgentFactory will provide a reference so that the class can issue callbacks for the abbot superclass instance it desires.
| Method Summary | |
|---|---|
LocalAgentFactory |
getLocalAgentFactory()
Retrieve any LocalAgentFactory set for this object. |
void |
setLocalAgentFactory(LocalAgentFactory factory)
Set the LocalAgentFactory used by the class instance. |
| Method Detail |
|---|
void setLocalAgentFactory(LocalAgentFactory factory)
LocalAgentFactory getLocalAgentFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||