|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.FactoryInstance
public class FactoryInstance
This class is used by the FlexFactory to store the configuration for an instance created by the factory. There is one of these for each destination currently since only destinations create these components.
FlexFactory| Constructor Summary | |
|---|---|
FactoryInstance(FlexFactory factory,
String id,
ConfigMap properties)
Normally FactoryInstances are constructed by FDS during startup so you do not need to use this method. |
|
| Method Summary | |
|---|---|
String |
getId()
|
Class |
getInstanceClass()
If possible, returns the class for the underlying configuration. |
ConfigMap |
getProperties()
Returns the ConfigMap that this factory instance was created with. |
String |
getScope()
|
String |
getSource()
|
Object |
lookup()
Return an instance as appropriate for this instance of the given factory. |
void |
operationComplete(Object instance)
When the caller is done with the instance, this method is called. |
void |
setScope(String scope)
Since many factories may provide components in different scopes, this is abstracted in the base factory instance class. |
void |
setSource(String source)
This is by convention the main property for the defining the instance we create with this factory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryInstance(FlexFactory factory,
String id,
ConfigMap properties)
factory - the FlexFactory this FactoryInstance is created fromid - the Destination's idproperties - the configuration properties for this destination.ConfigMap| Method Detail |
|---|
public String getId()
public void setScope(String scope)
public String getScope()
public void setSource(String source)
public String getSource()
public Class getInstanceClass()
public ConfigMap getProperties()
ConfigMappublic Object lookup()
public void operationComplete(Object instance)
instance - the instance returned via the lookup method for this
destination for this operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/FactoryInstance.html