com.carbonfive.flash.spring
Class SpringBeanAdapter

java.lang.Object
  extended by flashgateway.GatewayComponent
      extended by flashgateway.adapter.ServiceAdapter
          extended by flashgateway.adapter.java.JavaAdapter
              extended by com.carbonfive.flash.spring.SpringBeanAdapter
All Implemented Interfaces:
flashgateway.GatewayConstants, java.io.Serializable

public class SpringBeanAdapter
extends flashgateway.adapter.java.JavaAdapter

An adapter for locating Flash Remoting services in a Spring application context. This adapter only works with versions of Flash Remoting that allow registering custom adapters, such as the version provided with Macromedia Flex.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface flashgateway.GatewayConstants
CF_FILE_EXTENSION, CF_XML_DOCUMENT_CLASS, CF_XML_DOCUMENT_METHOD, CFC_FILE_EXTENSION, CFSERVLET_CONTEXT, CONFIG_DEFAULT_FILE, CONFIG_INIT_PARAM, CONTENT_TYPE, DEFAULT_ATTRIBUTE_DESCRIPTION, DEFAULT_CONSTRUCTOR_DESCRIPTION, DEFAULT_XMLBEAN_DESCRIPTION, DESCRIBE_HEADER_NAME, DISABLE_CFWS_ADAPTERS_INIT_PARAM, DISABLE_JAVA_ADAPTERS_INIT_PARAM, DISABLE_SERVER_AUTHENTICATION_INIT_PARAM, ENVELOPE_FLAG_KEY, ENVELOPE_FLAG_VALUE, FLEX_CLASS_FIELD, GATEWAY_JAR_FILENAME, GATEWAY_NAME, INDEX_PAGE_NAME, JMX_DOMAIN_NAME, JMX_WILDCARD, LICENSE_CODE, LICENSE_FILE, LICENSE_IP, LICENSE_KEY, LOG_LEVEL_INIT_PARAM, METADATA_ARGUMENT_ASOBJECT_TYPE, METADATA_ARGUMENTS, METADATA_DESCRIPTION, METADATA_EXTENDS, METADATA_FUNCTION_ASOBJECT_TYPE, METADATA_FUNCTIONS, METADATA_NAME, METADATA_OBJECT_VALUE, METADATA_REQUIRED, METADATA_RETURNS, METADATA_SERVICE_ADDRESS, METADATA_SERVICE_ASOBJECT_TYPE, METADATA_SUFFIX, METADATA_TYPE, METADATA_VERSION, METADATA_VERSION_NUMBER, PAGEABLE_RESULTSET_SERVICE_NAME, PROTECTED_PACKAGES, REDIRECT_URL_CONTEXT_TOKEN, RESULT_METHOD, SECURITY_CREDENTIALS, SECURITY_HEADER_NAME, SECURITY_PRINCIPAL, SERIALIZATION_CLASSIC, SERIALIZATION_FLEX, SERVER_CF, SERVER_CF_J2EE, SERVER_FLEX, SERVER_IPLANET, SERVER_J2EE, SERVER_JRUN, SERVER_MATCH_OVERRIDE, SERVER_NET, SERVER_WEBLOGIC, SERVER_WEBSPHERE, SERVICE_TYPE_HEADER, STATUS_ERR, STATUS_METHOD, STATUS_NOTAMF, STATUS_OK, URL_APPEND_HEADER, URL_REWRITE_HEADER, WHITELIST_CONFIG, WHITELIST_CONFIG_DEFAULT_PARENT, WHITELIST_CONFIG_PARENT, WILDCARD_CHAR
 
Constructor Summary
SpringBeanAdapter()
           
 
Method Summary
 java.lang.Object invokeFunction(flashgateway.action.ActionContext context, java.lang.String serviceName, java.lang.String functionName, java.util.List parameters)
           
 boolean supportsService(flashgateway.action.ActionContext context, java.lang.String serviceName, java.lang.String functionName, java.util.List parameters, java.lang.String type)
           
 
Methods inherited from class flashgateway.adapter.java.JavaAdapter
describeService
 
Methods inherited from class flashgateway.adapter.ServiceAdapter
createInvocationKey, getServiceType, setServiceType
 
Methods inherited from class flashgateway.GatewayComponent
getGateway, getName, setGateway, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringBeanAdapter

public SpringBeanAdapter()
Method Detail

supportsService

public boolean supportsService(flashgateway.action.ActionContext context,
                               java.lang.String serviceName,
                               java.lang.String functionName,
                               java.util.List parameters,
                               java.lang.String type)
                        throws java.lang.Exception
Overrides:
supportsService in class flashgateway.adapter.java.JavaAdapter
Throws:
java.lang.Exception

invokeFunction

public java.lang.Object invokeFunction(flashgateway.action.ActionContext context,
                                       java.lang.String serviceName,
                                       java.lang.String functionName,
                                       java.util.List parameters)
                                throws java.lang.Exception
Overrides:
invokeFunction in class flashgateway.adapter.java.JavaAdapter
Throws:
java.lang.Exception