public interface LocalAgentFactoryUser
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.
Modifier and Type | Method and Description |
---|---|
LocalAgentFactory |
getLocalAgentFactory()
Retrieve any LocalAgentFactory set for this object.
|
void |
setLocalAgentFactory(LocalAgentFactory factory)
Set the LocalAgentFactory used by the class instance.
|
void setLocalAgentFactory(LocalAgentFactory factory)
LocalAgentFactory getLocalAgentFactory()
Copyright © SAS Institute. All Rights Reserved.