flex.messaging
Class FactoryDestination

java.lang.Object
  extended by flex.management.ManageableComponent
      extended by flex.messaging.Destination
          extended by flex.messaging.FactoryDestination
All Implemented Interfaces:
Manageable, FlexComponent, FlexConfigurable, Serializable
Direct Known Subclasses:
MessageDestination, RemotingDestination

public abstract class FactoryDestination
extends Destination

See Also:
Serialized Form

Field Summary
 
Fields inherited from class flex.messaging.Destination
LOG_CATEGORY
 
Constructor Summary
FactoryDestination()
          Constructs an unmanaged FactoryDestination instance.
FactoryDestination(boolean enableManagement)
          Constructs a FactoryDestination with the indicated management.
 
Method Summary
 FlexFactory getFactory()
          Returns the factory of the FactoryDestination.
 FactoryInstance getFactoryInstance()
          Returns the FactoryInstance.
 String getScope()
          Returns the scope of the FactoryDestination
 String getSource()
          Gets the source of the FactoryDestination.
 void initialize(String id, ConfigMap properties)
          Initializes the FactoryDestination with the properties.
 void setFactory(FlexFactory factory)
          Sets the factory of the FactoryDestination.
 void setFactory(String id)
          Sets the factory of the FactoryDestination.
 void setScope(String scope)
          Sets the scope of the FactoryDestination that is used in FactoryInstance creation.
 void setSource(String source)
          Sets the source of the FactoryDestination that is used in FactoryInstance creation.
 
Methods inherited from class flex.messaging.Destination
addChannel, createAdapter, describeDestination, getAdapter, getChannels, getNetworkSettings, getSecurityConstraint, getService, getServiceType, isBackendShared, isClustered, removeChannel, setAdapter, setChannels, setId, setNetworkSettings, setSecurityConstraint, setSecurityConstraint, setService, start, stop
 
Methods inherited from class flex.management.ManageableComponent
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryDestination

public FactoryDestination()
Constructs an unmanaged FactoryDestination instance.


FactoryDestination

public FactoryDestination(boolean enableManagement)
Constructs a FactoryDestination with the indicated management.

Parameters:
enableManagement - true if the FactoryDestination is manageable; otherwise false.
Method Detail

initialize

public void initialize(String id,
                       ConfigMap properties)
Initializes the FactoryDestination with the properties.

Specified by:
initialize in interface FlexConfigurable
Overrides:
initialize in class Destination
Parameters:
properties - Properties for the FactoryDestination.
id - Id of the ManageableComponent.

getFactory

public FlexFactory getFactory()
Returns the factory of the FactoryDestination. Before a valid FlexFactory can be returned, MessageBroker and hence Service of the Destination has to be set.


setFactory

public void setFactory(String id)
Sets the factory of the FactoryDestination. MessageBroker has to know the factory before it can be assigned to the destination.

Parameters:
id - The id of the factory.

setFactory

public void setFactory(FlexFactory factory)
Sets the factory of the FactoryDestination.

Parameters:
factory -

getFactoryInstance

public FactoryInstance getFactoryInstance()
Returns the FactoryInstance. FactoryInstance stores configuration state used for retrieving an instance from the factory. This needs to be called after calling setSource and setScope methods.


getScope

public String getScope()
Returns the scope of the FactoryDestination

Returns:
scope of the FactoryDestination.

setScope

public void setScope(String scope)
Sets the scope of the FactoryDestination that is used in FactoryInstance creation. Scope cannot be changed to and from application scope once FactoryInstance is initialized.

Parameters:
scope -

getSource

public String getSource()
Gets the source of the FactoryDestination.

Returns:

setSource

public void setSource(String source)
Sets the source of the FactoryDestination that is used in FactoryInstance creation. Source cannot be changed once FactoryInstance is initialized and the scope is application.

Parameters:
source -


Copyright © 2007 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/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/FactoryDestination.html