[sandbox.akabana]/trunk/yui-frameworks/yui-framework/src/main/flex/jp/akb7/yui/core/mixin/YuiFrameworkMixin.as
Parent Directory
|
Revision Log
Revision 1199 -
(hide annotations)
Wed Jul 28 12:56:41 2010 JST (2 years, 9 months ago) by e1arkw
Original Path: trunk/yui/yui-framework/src/main/flex/org/seasar/akabana/yui/framework/mixin/YuiFrameworkMixin.as
File size: 2389 byte(s)
Wed Jul 28 12:56:41 2010 JST (2 years, 9 months ago) by e1arkw
Original Path: trunk/yui/yui-framework/src/main/flex/org/seasar/akabana/yui/framework/mixin/YuiFrameworkMixin.as
File size: 2389 byte(s)
| 1 | e1arkw | 404 | /* |
| 2 | * Copyright 2004-2008 the Seasar Foundation and the Others. | ||
| 3 | * | ||
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | * you may not use this file except in compliance with the License. | ||
| 6 | * You may obtain a copy of the License at | ||
| 7 | * | ||
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | * | ||
| 10 | * Unless required by applicable law or agreed to in writing, software | ||
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | e1arkw | 992 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 13 | e1arkw | 404 | * either express or implied. See the License for the specific language |
| 14 | * governing permissions and limitations under the License. | ||
| 15 | */ | ||
| 16 | package org.seasar.akabana.yui.framework.mixin | ||
| 17 | { | ||
| 18 | e1arkw | 1071 | CONFIG::FP10{ |
| 19 | import __AS3__.vec.Vector; | ||
| 20 | } | ||
| 21 | e1arkw | 785 | import flash.net.registerClassAlias; |
| 22 | e1arkw | 992 | |
| 23 | e1arkw | 404 | import mx.core.IFlexModuleFactory; |
| 24 | import mx.managers.ISystemManager; | ||
| 25 | e1arkw | 992 | |
| 26 | e1arkw | 903 | import org.seasar.akabana.yui.core.yui_internal; |
| 27 | e1arkw | 955 | import org.seasar.akabana.yui.framework.YuiFrameworkGlobals; |
| 28 | import org.seasar.akabana.yui.framework.bridge.FrameworkBridge; | ||
| 29 | e1arkw | 404 | import org.seasar.akabana.yui.framework.core.YuiFrameworkContainer; |
| 30 | e1arkw | 431 | import org.seasar.akabana.yui.logging.LogManager; |
| 31 | e1arkw | 785 | import org.seasar.akabana.yui.logging.config.ConfigurationProvider; |
| 32 | e1arkw | 780 | import org.seasar.akabana.yui.logging.config.factory.LogConfigurationFactory; |
| 33 | e1arkw | 992 | |
| 34 | e1arkw | 1034 | [ExcludeClass] |
| 35 | e1arkw | 404 | [Mixin] |
| 36 | e1arkw | 560 | [ResourceBundle("conventions")] |
| 37 | /** | ||
| 38 | e1arkw | 495 | * YuiFramework初期設定用Mixinクラス |
| 39 | e1arkw | 992 | * |
| 40 | e1arkw | 493 | * @author $Author$ |
| 41 | * @version $Revision$ | ||
| 42 | e1arkw | 404 | */ |
| 43 | public class YuiFrameworkMixin | ||
| 44 | { | ||
| 45 | e1arkw | 780 | { |
| 46 | e1arkw | 1199 | CONFIG::DEBUG { |
| 47 | LogConfigurationFactory; | ||
| 48 | } | ||
| 49 | e1arkw | 785 | registerClassAlias(ConfigurationProvider.FACTORY_CLASS_NAME,LogConfigurationFactory); |
| 50 | e1arkw | 780 | } |
| 51 | e1arkw | 992 | |
| 52 | e1arkw | 828 | private static var _this:YuiFrameworkMixin; |
| 53 | e1arkw | 992 | |
| 54 | e1arkw | 828 | private static var _container:YuiFrameworkContainer; |
| 55 | e1arkw | 992 | |
| 56 | e1arkw | 404 | public static function init( flexModuleFactory:IFlexModuleFactory ):void{ |
| 57 | e1arkw | 1199 | CONFIG::DEBUG { |
| 58 | LogManager.init(); | ||
| 59 | } | ||
| 60 | |||
| 61 | e1arkw | 518 | _this = new YuiFrameworkMixin(); |
| 62 | _container = new YuiFrameworkContainer(); | ||
| 63 | e1arkw | 992 | YuiFrameworkGlobals.yui_internal::frameworkBridge = FrameworkBridge.initialize(); |
| 64 | |||
| 65 | e1arkw | 404 | if( flexModuleFactory is ISystemManager ){ |
| 66 | e1arkw | 903 | var systemManager_:ISystemManager = flexModuleFactory as ISystemManager; |
| 67 | _container.yui_internal::monitoringSystemManager(systemManager_); | ||
| 68 | e1arkw | 955 | } |
| 69 | e1arkw | 404 | } |
| 70 | } | ||
| 71 | } |
Properties
| Name | Value |
|---|---|
| svn:keywords | Author Revision |
| Repository Top ViewVC Help |
![]() |
| Powered by ViewVC |

