All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flex.messaging.config.AdapterSettings Maven / Gradle / Ivy

Go to download

BlazeDS is the server-based Java remoting and web messaging technology that enables developers to easily connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR applications for more responsive rich Internet application (RIA) experiences.

There is a newer version: 3.2.0.3978
Show newest version
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  [2002] - [2007] Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated
 * and its suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 */
package flex.messaging.config;

/**
 * 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 flex.messaging.services.ServiceAdapter * @author Peter Farland */ public class AdapterSettings extends PropertiesSettings { private final String id; private String sourceFile; private String className; private boolean defaultAdapter; /** * 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. * * @param id the String representing the unique identity for * this adapter. */ public AdapterSettings(String id) { super(); this.id = id; } /** * The identity that destinations will refer to when assigning and adapter. * * @return the adapter identity as a String. */ public String getId() { return id; } /** * Gets the name of the Java class implementation for this adapter. * * @return String The name of the adapter implementation. * @see flex.messaging.services.ServiceAdapter */ public String getClassName() { return className; } /** * 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. * * @param name the String */ public void setClassName(String name) { className = name; } /** * 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. * * @return boolean true if this adapter is the default. */ public boolean isDefault() { return defaultAdapter; } /** * Sets a flag to determine whether an adapter will be used as the default * (for example, in the event that a destination did not specify an adapter * explicitly). * * Only one default can be set for a given service. * * @param b a boolean flag, true if this adapter should be * used as the default for the service. */ public void setDefault(boolean b) { defaultAdapter = b; } /** * Internal use only. * @exclude */ String getSourceFile() { return sourceFile; } /** * Internal use only. * @exclude */ void setSourceFile(String file) { this.sourceFile = file; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy