Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3352116
  • 博文数量: 530
  • 博客积分: 13360
  • 博客等级: 上将
  • 技术积分: 5473
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-13 13:32
文章分类

全部博文(530)

文章存档

2017年(1)

2015年(2)

2013年(24)

2012年(20)

2011年(97)

2010年(240)

2009年(117)

2008年(12)

2007年(8)

2006年(9)

分类:

2010-05-20 21:12:19

14 配置标签说明(Configuration Tag Reference)

    This chapter serves as a pure reference for all configuration tags, listing all their attributes. For examples or more detailed explanations we will link to the corresponding chapters.

    本章只做纯配置标签说明,列出它们所有的属性。举例或详细解释则链接到相关章节。

    The reference covers Metadata, MXML and XML tags. Many of the tags are available for all three configuration modes. Some only for one or two of them. The corresponding section will list which of these options are available.

    说明包括Metadata, MXML 和XML标签。一些标签对三种设置模式都有效。一些仅对一个或二个有效。相关章节将列出哪些设置是有效的。

14.1 依赖注入(Dependency Injection)

14.1.1 属性注入(Inject for Properties)

Metadata Tag [Inject]
may be placed on property declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation and
Comment For MXML or XML see

Attributes

id optional Specifies the id of the object to inject, if omitted injection by type is performed.
描述了注入对象的ID,如果不采用类型方式注入,则采用ID方式注入

required optional Indicates whether the dependency is required, default if omitted: true.
标明是否需要依赖,默认为忽略:true

14.1.2 Inject for Methods

Metadata Tag [Inject]
may be placed on method declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation

Attributes

None

14.1.3 InjectConstructor

Metadata Tag [InjectConstructor]
may be placed on class declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation
Comment For MXML or XML see

Attributes

None

14.2 Messaging

14.2.1 ManagedEvents

Metadata Tag [ManagedEvents]
may be placed on class declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

names required The names (types) of the events dispatched from the annotated object that the container should manage.

scope optional The scope through which the event should be dispatched. If this attribute is omitted the event will be dispatched through all scopes associated with the Context the dispatching object lives in.

14.2.2 MessageDispatcher

Metadata Tag [MessageDispatcher]
may be placed on property declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

property required for MXML/XML The property the injected dispatcher function should be injected into. Will be automatically set when used as a Metadata Tag.

scope optional The scope through which the message should be dispatched. If this attribute is omitted the message will be dispatched through all scopes associated with the Context the dispatching object lives in.

14.2.3 MessageHandler

Metadata Tag [MessageHandler]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to receive. If omitted all messages will be received (rarely useful).
messageProperties optional If specified not the message itself will be passed to the method, but instead the listed properties of the message as method parameters.
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which handlers should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The method the message instance should be passed to. Will be automatically set when used as a Metadata Tag.

14.2.4 MessageBinding

Metadata Tag [MessageBinding]
may be placed on property declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type required The type (class) of the message that the annotated property should be bound to.
messageProperty required The name of the property of the message class whose value should be bound to the targetProperty.
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which bindings should be executed. The default value is int.MAX_VALUE.
targetProperty required for MXML/XML The name of the property that the message property value should be bound to. Will be automatically set when used as a Metadata Tag.

14.2.5 MessageInterceptor

Metadata Tag [MessageInterceptor]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to intercept. If omitted all messages will be received (rarely useful).
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which interceptors should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The interceptor method. Will be automatically set when used as a Metadata Tag.

14.2.6 MessageError

Metadata Tag [MessageError]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that was passed to the handler or interceptor that threw an Error. If omitted the error handler applies to all message types.
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message was dispatched to the handler or interceptor that threw an Error. The default is the global scope.
order optional The order in which error handlers should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The interceptor method. Will be automatically set when used as a Metadata Tag.

14.2.7 Command

Metadata Tag [Command]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to receive. If omitted the type will be deduced from the method parameter.
messageProperties optional If specified not the message itself will be passed to the method, but instead the listed properties of the message as method parameters.
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which handlers should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The method the message instance should be passed to. Will be automatically set when used as a Metadata Tag.

14.2.8 CommandResult

Metadata Tag [CommandResult]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to receive. If omitted the type will be deduced from the second method parameter (if available).
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which result handlers should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The method the result should be passed to. Will be automatically set when used as a Metadata Tag.

14.2.9 CommandError

Metadata Tag [CommandError]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to receive. If omitted the type will be deduced from the second method parameter (if available).
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which error handlers should be invoked. The default value is int.MAX_VALUE.
method required for MXML/XML The method the error should be passed to. Will be automatically set when used as a Metadata Tag.

14.2.10 CommandStatus

Metadata Tag [CommandStatus]
may be placed on Boolean property declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type optional The type (class) of the message that the annotated method wishes to receive. If omitted the type will be deduced from the second method parameter (if available).
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which error handlers should be invoked. The default value is int.MAX_VALUE.
property required for MXML/XML The property which will act as a boolean flag for the matching command type. Will be automatically set when used as a Metadata Tag.

14.2.11 DynamicCommand

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type required The type (class) of the command to create.
messageType optional The type (class) of the message that the command wishes to receive. If omitted the type will be deduced from the method parameter (if available).
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
order optional The order in which commands should be invoked. The default value is int.MAX_VALUE.
messageProperties optional If specified not the message itself will be passed to the method, but instead the listed properties of the message as method parameters.
stateful optional If false (the default) the framework will create a new instance of this command for each matching message. If true the command instance will be reused for subsequent command invocations.
execute optional The name of the method that executes the command. The default is execute.
result optional The name of the method that handles the result. The default is result.
error optional The name of the method that handles any errors. The default is error.

Child Elements

Any tag listed in 14.1 through 14.5, ConstructorArgs, Property, All Custom Configuration Tags that implement the ObjectDefinitionDecorator interface.

14.2.12 MessageConfirmation

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation Simple utility tag that opens an Alert for matching messages and only continues with message processing if the user clicks OK. This is a Flex-only feature.

Attributes

type optional The type (class) of the message that the alert should be shown for.
selector optional An selector value for filtering in addition to message selection by type. See .
scope optional The scope from which the message should be received. The default is the global scope.
text required The text to display in the Alert.
title required The title to display in the Alert.

14.2.13 Selector

Metadata Tag [Selector]
may be placed on property declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation

Attributes

None

14.3 Object Lifecycle

14.3.1 AsyncInit

Metadata Tag [AsyncInit]
may be placed on class declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

completeEvent optional The event type signalling that the object is fully initialized. Default Event.COMPLETE.
errorEvent optional The event type signalling that the object failed to initialize correctly. Default ErrorEvent.ERROR.

14.3.2 Init

Metadata Tag [Init]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation
Note The old name of this tag (PostConstruct) has been deprecated.

Attributes

method required for MXML/XML The name of the method to invoke when the object is fully initialized. Will be automatically set when used as a Metadata Tag.

14.3.3 Destroy

Metadata Tag [Destroy]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation
Note The old name of this tag (PreDestroy) has been deprecated.

Attributes

method required for MXML/XML The name of the method to invoke when the object is fully initialized. Will be automatically set when used as a Metadata Tag.

14.3.4 Observe

Metadata Tag [Observe]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

phase optional The lifecycle phase to observe. The default is postInit. The other permitted values are preConfigure, preInit, preDestroy and postDestroy.
objectId optional The id of the object to observe. If omitted the observer method will be invoked for all matching types (polymorphically).
method required for MXML/XML The name of the method to invoke when the object is fully initialized. Will be automatically set when used as a Metadata Tag.

14.4 Localization

14.4.1 ResourceBinding

Metadata Tag [ResourceBinding]
may be placed on property declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

bundle required The bundle name of the resource.
key required The resource key.
property required for MXML/XML The name of the property that the resource should be bound to. Will be automatically set when used as a Metadata Tag.

14.5 Extensibility

14.5.1 Factory

Metadata Tag [Factory]
may be placed on method declaration
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

method required for MXML/XML The name of the method that produces the obejcts. Will be automatically set when used as a Metadata Tag.

14.5.2 Target

Metadata Tag [Target]
may be placed on property declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation in Creating Custom Configuration Tags (final section titled "Metadata on Properties or Methods")

Attributes

None

14.6 ActionScript Configuration

14.6.1 ObjectDefinition

Metadata Tag [ObjectDefinition]
may be placed on property declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation

Attributes

lazy optional When set to false (default) the object will be instantiated when the container initializes (but only if the singleton attribute keeps the default value (true). When set to true the object will be instantiated on demand.
singleton optional When set to true (default) the container will only create a single instance of the object, cache it internally and return the same instance upon each request. When set to false it will create a new instance upon each request.
id optional The id the object should be registered with. If omitted the name of the property that produces (or holds) the object will be used as the id.
order optional The initialization order. Only considered for non-lazy singletons, processed in ascending order. Default int.MAX_VALUE.

14.6.2 Internal

Metadata Tag [Internal]
may be placed on property declaration
MXML and XML Namespace N/A
MXML Tag N/A
XML Tag N/A
Detailed Explanation May be placed on properties in an AS3 Configuration Class that should not be included in the IOC Container.

Attributes

None

14.7 MXML and XML Configuration

14.7.1 Variants of Metadata Tags

This section lists tags that can only be used in MXML and XML configuration and not as Metadata in classes. Nevertheless most of the other tags documented in previous sections can be used as MXML or XML tags, too (their tag names are listed if this is the case). But for the tags in previous sections the most common use case is to use them as Metadata.

14.7.2 Object

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Detailed Explanation and

Attributes

type required The type of the object to create.
创建一个对象

lazy optional When set to false (default) the object will be instantiated when the container initializes (but only if the singleton attribute keeps the default value (true). When set to true the object will be instantiated on demand. Can only be used in root object definitions, not in inline definitions.
当设置为false(默认),对象在容器初始化时创建(当singleton属性为默认值true时)。当设置为true,在你第一次使用该对象之前,对象不会被初始化和配置。该标签仅能用于根对象的定义,不能用于内部嵌套对象定义。

singleton optional When set to true (default) the container will only create a single instance of the object, cache it internally and return the same instance upon each request. When set to false it will create a new instance upon each request. Can only be used in root object definitions, not in inline definitions.
当设置为true(默认)时,容器将创建惟一的对象实例,每次请求返回相同的实例。当设置为false,对于每次请求,容器将创建一个新实例。这仅能用于根对象定义,不能用于内部嵌套对象定义。

id optional The id the object should be registered with. If omitted the name of the property that produces (or holds) the object will be used as the id. Can only be used in root object definitions, not in inline definitions.
对象最好声明ID。如果忽略属性的名字,对象可通过ID访问。这仅能用于根对象定义,不能用于内部嵌套对象定义。

order optional The initialization order. Only considered for non-lazy singletons, processed in ascending order. Default int.MAX_VALUE.
初始化次序。仅应用于非lazy singletons,按升序处理,默认为int.MAX_VALUE

Child Elements

Any tag listed in 14.1 through 14.5, ConstructorArgs, Property, All Custom Configuration Tags that implement the ObjectDefinitionDecorator interface.

14.7.3 NestedObject

Metadata Tag N/A
MXML Namespace
MXML Tag
XML Tag N/A (simply use )
Detailed Explanation Needed in MXML for inline object definitions.

Attributes

type required The type of the object to create.

Child Elements

Any tag listed in 14.1 through 14.5, ConstructorArgs, Property, All Custom Configuration Tags that implement the ObjectDefinitionDecorator interface.

14.7.4 View

Metadata Tag N/A
MXML Namespace
MXML Tag
XML Tag
Detailed Explanation

Attributes

type required The type of the view that should be configured.
id optional The id of the view that should be configured.

Child Elements

Any tag listed in 14.1 through 14.5, all Custom Configuration Tags that implement the ObjectDefinitionDecorator interface except those that deal with object creation as the View tag configures objects which already have been created by the Flex framework.

14.7.5 ConstructorArgs

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Description May be used to explicitly specify the constructor arguments in MXML or XML as a list of child tags

Attributes

None

Child Elements

Any tag listed in , Object, Array, StaticPropertyRef or any tag that is mapped to an object or an ObjectDefinitionFactory.

14.7.6 Property

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Description May be used to explicitly specify a property value in MXML or XML. The value may be a simple value or a dependency injected by type or by id.

Attributes

name required The name of the property.
value optional May be used for simple values (instead of a nested child node specifying the value).
idRef optional Specifies a dependency for this property, referring to another object in the container by id.
typeRef optional Specifies a dependency for this property, referring to another object in the container by type.
required optional Indicates whether the dependency is required (only applied if idRef or typeRef is set).

The attributes value, idRef and typeRef are mutually exclusive.

Child Elements

A single Child Elements may be used to specify the value for the property if neither value, idRef nor typeRef have been set as an attribute. Allowed are the same tags that are allowed as children of the ConstructorArgs tag: Any tag listed in , Object, Array, StaticPropertyRef or any tag that is mapped to an object or an ObjectDefinitionFactory.

14.7.7 ObjectRef

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Description May be used to specify a reference to another object in the container by id or by type.

Attributes

idRef optional Specifies a dependency for this property, referring to another object in the container by id.
typeRef optional Specifies a dependency for this property, referring to another object in the container by type.
required optional Indicates whether the dependency is required (only applied if idRef or typeRef is set).

The attributes idRef and typeRef are mutually exclusive.

Child Elements

None.

14.7.8 Array

Metadata Tag N/A
MXML and XML Namespace
MXML Tag
XML Tag
Description May be used to specify Array values in MXML or XML, specifying the elements as a list of child tags. Should be preferred over mx:Array if it contains special Parsley tags as children (they won't be processed within a regular mx:Array tag).

Attributes

None

Child Elements

Any tag listed in , Object, Array, StaticPropertyRef or any tag that is mapped to an object or an ObjectDefinitionFactory.

14.7.9 StaticPropertyRef

Metadata Tag N/A
MXML Tag N/A
XML Namespace
XML Tag
Description May be used to refer to a static property in XML configuration files. Not necessary in MXML configuration, use normal binding syntax in MXML (e.g. value="{Environment.CONSTANT}").

Attributes

type required The class the static property value should be fetched from.
property required The name of the static property.

Child Elements

None

14.7.10 Simple Values

For MXML configuration you can use the builtin tags to specify simple values like mx:String or mx:int. For XML configuration Parsley includes a number of tags that can be used for simple values:

  • string
  • boolean
  • int
  • uint
  • number
  • date
  • class
  • null

Example:



Hello
7
true



14.7.11 Include

Metadata Tag N/A
MXML Tag N/A
XML Namespace
XML Tag
Description May be used to include additional XML configuration files. You can place any number of include tags in XML configuration files.

Attributes

filename required The name of the file to include.

Child Elements

None

14.7.12 Variable

Metadata Tag N/A
MXML Tag N/A
XML Namespace
XML Tag
Description May be used to declare variables which may be used in XML attributes or text nodes with the notation ${variableName}.

Attributes

name required The name of the variable.
value required The value of the variable.

Child Elements

None

14.8 Flex Component Wiring

14.8.1 Configure

Metadata Tag N/A
MXML Namespace
MXML Tag
XML Tag N/A
Detailed Explanation

Attributes

target optional The object that should be wired to the Context. If omitted the document object the tag was placed in will be wired.
repeat optional Indicates whether the wiring should happen repeatedly whenever the object is added to the stage. When set to false it is only wired once. The default is true.

14.9 Flex Logging

14.9.1 Target

Metadata Tag N/A
MXML Tag N/A (the builtin MXML tags for LogTargets can be used instead)
XML Namespace /flex/logging
XML Tag
Required Initialization FlexLoggingXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id of the LogTarget, usually not needed.
type optional The type (class) of the LogTarget, defaults to TraceTarget if omitted.
level optional The minimum level that this target should log.
attributes of LineFormattedTarget optional If the specified type extends LineFormattedTarget all properties of that class can be set: field-separator, include-category, include-level, include-date, include-time.

14.10 Flash Logging

14.10.1 LogFactory

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/logging
XML Tag
Required Initialization FlashLoggingXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id of the LogFactory, usually not needed.
type optional The type (class) of the LogFactory, defaults to DefaultLogFactory which is usually sufficient.
context optional Boolean attribute (defaults to true). Indicates whether this factory should be set as the factory for the LogContext class. Should only be set to false for special requirements.
root-level optional The default log level for loggers for which no level has been specified explicitly. Defaults to LogLevel.TRACE.

Child Elements

appender optional One or more Appenders that handle the log output. Usually at least one is required to see any output.
logger optional Configuration for individual loggers. Only required for loggers which should not use the root-level.

14.10.2 Logger

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/logging
XML Tag
Required Initialization FlashLoggingXmlSupport.initialize()
Detailed Explanation

Attributes

name required The name of the Logger.
level required The minum level this Logger should log. Valid values are trace, debug, info, warn, error and fatal.

Child Elements

None

14.10.3 Appender

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/logging
XML Tag
Required Initialization FlashLoggingXmlSupport.initialize()
Detailed Explanation

Attributes

ref required The id of the Appender class configured in the Parsley Context. For configuring the Appender itself you can use regular Parsley tags.
threshold required The minum level this Appender should log. May be used as an additional filter mechanism in addition to the level settings for individual loggers. Valid values are trace, debug, info, warn, error and fatal.

Child Elements

None

14.11 Flash Localization

14.11.1 ResourceManager

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/resources
XML Tag
Required Initialization FlashResourceXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id of the ResourceManager, usually not needed as you should only configure one ResourceManager instance and thus are able to inject it by type.
type optional The type (class) of the ResourceManager, defaults to DefaultResourceManager which is usually sufficient.
cacheable optional Boolean attribute (defaults to false). Indicates whether the ResourceManager should cache loaded bundles.
persistent optional Boolean attribute (defaults to false). Indicates whether the ResourceManager should store the last active locale in a Local Shared Object and restore it on the next application start.

Child Elements

locale optional The locales supported by this ResourceManager.

14.11.2 Locale

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/resources
XML Tag
Required Initialization FlashResourceXmlSupport.initialize()
Detailed Explanation

Attributes

language optional The language code for this locale, a lowercase ISO 639 code (e.g. en or fr).
country optional The country/region code for this locale, an uppercase ISO 3166 2-letter code (e.g. US or FR).

Child Elements

None

14.11.3 ResourceBundle

Metadata Tag N/A
MXML Tag N/A
XML Namespace /flash/resources
XML Tag
Required Initialization FlashResourceXmlSupport.initialize()
Detailed Explanation

Attributes

id required The id of the bundle.
basename required The basename of files containing messages for this bundle. For the locale en_US for example the basename messages/tooltips will instruct Parsley to load the following files: messages/tooltips_en_US.xml, messages/tooltips_en.xml and messages/tooltips.xml.
type optional The type (class) of the ResourceBundle, defaults to DefaultResourceBundle which is usually sufficient.
loaderFactory optional The type (class) of the BundleLoaderFactory, responsible for loading the bundle files. Defaults to DefaultResourceBundle which is usually sufficient.
localized optional Boolean attribute (defaults to true). If set to false the framework will only load the resources for the basename like messages/tooltips.xml and not look for files with localized messages.
ignore-country optional Boolean attribute (defaults to false). If set to true the framework will ignore the country code of the active locale for this bundle.

Child Elements

None

14.12 Pimento Data Services

14.12.1 Config

Metadata Tag N/A
MXML and XML Namespace /pimento
MXML Tag
XML Tag
Required Initialization for XML PimentoXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id of the configuration instance.
url required The URL that Pimento should connect to.
timeout optional Specifies the request timeout in milliseconds.

Child Elements

None

14.12.2 Service

Metadata Tag N/A
MXML and XML Namespace /pimento
MXML Tag
XML Tag
Required Initialization for XML PimentoXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id that this service will be registered with in the Parsley IOC Container.
name required The name of the service as registered on the server-side.
type required The AS3 service implementation (usually generated with Pimentos Ant Task).
config optional The id of the PimentoConfig instance to use for this service. Only required if you have more than one config tag in your Context. If there is only one (like in most use cases) it will be automatically detected.
timeout optional Specifies the request timeout in milliseconds.

14.13 Cinnamon Remoting

14.13.1 Channel

Metadata Tag N/A
MXML and XML Namespace /cinnamon
MXML Tag
XML Tag
Required Initialization for XML CinnamonXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id of the channel instance.
url required The URL that the channel should connect to.
type optional The type (class) of the channel, defaults to NetConnectionServiceChannel.
timeout optional Specifies the request timeout in milliseconds.

Child Elements

None

14.13.2 Service

Metadata Tag N/A
MXML and XML Namespace /cinnamon
MXML Tag
XML Tag
Required Initialization for XML CinnamonXmlSupport.initialize()
Detailed Explanation

Attributes

id optional The id that this service will be registered with in the Parsley IOC Container.
name required The name of the service as registered on the server-side.
type required The AS3 service implementation (usually generated with Pimentos Ant Task).
channel optional Reference to the id of the ServiceChannel instance. Only required if you have more than one channel tag in your Context. If there is only one (like in most use cases) it will be automatically detected.
timeout optional Specifies the request timeout in milliseconds.
阅读(2273) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~