flex.messaging.factories
Class JavaFactoryInstance

java.lang.Object
  extended by flex.messaging.FactoryInstance
      extended by flex.messaging.factories.JavaFactoryInstance

public class JavaFactoryInstance
extends FactoryInstance

This class is used by the JavaFactory to store the configuration for an instance created by the JavaFactory. There is one of these for each destination currently since only destinations create these components.

See Also:
JavaFactory

Constructor Summary
JavaFactoryInstance(JavaFactory factory, String id, ConfigMap properties)
          Constructs a JavaFactoryInstance, assigning its factory, id, and properties.
 
Method Summary
 Object createInstance()
          Creates an instance from specified source and initializes the instance if it is of FlexConfigurable type.
 String getAttributeId()
          Returns the attribute id for the JavaFactoryInstance.
 Class getInstanceClass()
          Creates an instance class from specified source.
 void operationComplete(Object instance)
          Updates the session so that these values get replicated to other nodes in the cluster.
 void setAttributeId(String attributeId)
          Sets the attribute id for the JavaFactoryInstance.
 void setSource(String source)
          Sets the instance class to null, in addition to updating the source property.
 
Methods inherited from class flex.messaging.FactoryInstance
getId, getProperties, getScope, getSource, lookup, setScope
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFactoryInstance

public JavaFactoryInstance(JavaFactory factory,
                           String id,
                           ConfigMap properties)
Constructs a JavaFactoryInstance, assigning its factory, id, and properties.

Parameters:
factory - The JavaFactory that created this instance.
id - The id for the JavaFactoryInstance.
properties - The properties for the JavaFactoryInstance.
Method Detail

setAttributeId

public void setAttributeId(String attributeId)
Sets the attribute id for the JavaFactoryInstance.

Parameters:
attributeId - The attribute id for the JavaFactoryInstance.

getAttributeId

public String getAttributeId()
Returns the attribute id for the JavaFactoryInstance.

Returns:
attributeId The attribute id for the JavaFactoryInstance.

setSource

public void setSource(String source)
Sets the instance class to null, in addition to updating the source property.

Overrides:
setSource in class FactoryInstance

createInstance

public Object createInstance()
Creates an instance from specified source and initializes the instance if it is of FlexConfigurable type.

Returns:
the instance

getInstanceClass

public Class getInstanceClass()
Creates an instance class from specified source.

Overrides:
getInstanceClass in class FactoryInstance
Returns:
the class for this configured instance or null if the class is not known until lookup time.

operationComplete

public void operationComplete(Object instance)
Updates the session so that these values get replicated to other nodes in the cluster. Possibly we should make this configurable?

Overrides:
operationComplete in class FactoryInstance
Parameters:
instance - the instance returned via the lookup method for this destination for this operation.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

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/factories/JavaFactoryInstance.html