flex.messaging.config
Class AdapterSettings

java.lang.Object
  extended by flex.messaging.config.PropertiesSettings
      extended by flex.messaging.config.AdapterSettings

public class AdapterSettings
extends flex.messaging.config.PropertiesSettings

A service must register the adapters that it will use to process messages. Each destination selects an adapter that processes the request by referring to it by id.

Adapters can also be configured with initialization properties.

See Also:
ServiceAdapter

Constructor Summary
AdapterSettings(String id)
          Used to construct a new set of properties to describe an adapter.
 
Method Summary
 String getClassName()
          Gets the name of the Java class implementation for this adapter.
 String getId()
          The identity that destinations will refer to when assigning and adapter.
 boolean isDefault()
          Returns a boolean flag that determines whether this adapter is the default for a service's destinations.
 void setClassName(String name)
          Sets name of the Java class implementation for this adapter.
 void setDefault(boolean b)
          Sets a flag to determine whether an adapter will be used as the default (i.e.
 
Methods inherited from class flex.messaging.config.PropertiesSettings
addProperties, addProperty, addProperty, getProperties, getProperty, getPropertyAsBoolean, getPropertyAsInt, getPropertyAsList, getPropertyAsLong, getPropertyAsMap, getPropertyAsString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterSettings

public AdapterSettings(String id)
Used to construct a new set of properties to describe an adapter. Note that an identity is required in order for destinations to refer to this adapter.

Parameters:
id - the String representing the unique identity for this adapter.
Method Detail

getId

public String getId()
The identity that destinations will refer to when assigning and adapter.

Returns:
the adapter identity as a String.

getClassName

public String getClassName()
Gets the name of the Java class implementation for this adapter.

Returns:
String The name of the adapter implementation.
See Also:
ServiceAdapter

setClassName

public void setClassName(String name)
Sets name of the Java class implementation for this adapter. The implementation is resolved from the current classpath and must extend flex.messaging.services.ServiceAdapter.

Parameters:
name - the String

isDefault

public boolean isDefault()
Returns a boolean flag that determines whether this adapter is the default for a service's destinations. Only one default adapter can be set for a given service.

Returns:
boolean true if this adapter is the default.

setDefault

public void setDefault(boolean b)
Sets a flag to determine whether an adapter will be used as the default (i.e. in the event that a destination did not specify an adapter explicitly). Only one default can be set for a given service.

Parameters:
b - a boolean flag, true if this adapter should be used as the default for the service.


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/config/AdapterSettings.html