English 中文(简体)
Parsley:如何在2个Parsley组合之间分享经验?
原标题:Parsley: how to share instance between 2 Parsley configurations?

我为我的2个要素配置了2个区。

A.xml

<fx:Declarations>
    <!--Presenters-->
    <presenters:ScenarioDefinitionPresenter id="scenarioDefinitionPresenter"/>

    <!--Manager-->
    <managers:ScenarioDefinitionManager/>

    <!--service-->      
    <services:ScenarioDefinitionServiceImpl id="scenarioDefinitionService" />
</fx:Declarations>

<>B.xml

<fx:Declarations>
    <!--Presenters-->
    <presenters:TemplatePresenter/>
    <presenters:ScenarioDefinitionPresenter id="scenarioDefinitionPresenter"/>
</fx:Declarations>

我的问题是,如何使两院的“scenario Definition Presenter”都同意同样的情况?

感谢!

最佳回答

但这取决于你如何设计你的大礼。 在帕尔斯利,如果你与那位发言者有根基的话,那么它将在所有的儿童集会上分享(除非你另有说明)。

从表面上看,看看看看看看看,你有2个有不同背景的兄弟姐妹(2个生下的儿童)。 我的建议是,你在主要申请卷宗中打一conf,并在此增加你的介绍。 从这里看,你不需要具体指明儿童背景的介绍者,只需要在必要时确定注射,而Parsley是其他的。

问题回答

在你的基本背景中具体说明所需类别,你可以在所有模块中采用相同的分类。





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签