switch to using IModule to trigger module output

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bbbd0f20
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bbbd0f20
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bbbd0f20

Branch: refs/heads/feature/amf
Commit: bbbd0f2024f16632a44575e77f24af63c85023dd
Parents: ccc699f
Author: Alex Harui <aha...@apache.org>
Authored: Fri Aug 18 22:08:37 2017 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Fri Aug 18 22:09:29 2017 -0700

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/html/UIModule.as  |  3 +-
 .../projects/Core/src/main/flex/CoreClasses.as  |  1 +
 .../main/flex/org/apache/flex/core/IModule.as   | 34 ++++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bbbd0f20/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/UIModule.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/UIModule.as 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/UIModule.as
index 4c7784f..f81b9e9 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/UIModule.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/UIModule.as
@@ -24,6 +24,7 @@ package org.apache.flex.html
         import flash.utils.getQualifiedClassName;        
     }
     import org.apache.flex.core.IFlexInfo;
+    import org.apache.flex.core.IModule;
     import org.apache.flex.core.IValuesImpl;
        import org.apache.flex.core.ValuesManager;
        import org.apache.flex.events.Event;
@@ -73,7 +74,7 @@ package org.apache.flex.html
      *  @playerversion AIR 2.6
      *  @productversion FlexJS 0.0
      */
-       public class UIModule extends Group implements IFlexInfo
+       public class UIModule extends Group implements IFlexInfo, IModule
        {
         /**
          *  Constructor.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bbbd0f20/frameworks/projects/Core/src/main/flex/CoreClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/CoreClasses.as 
b/frameworks/projects/Core/src/main/flex/CoreClasses.as
index f1c3101..e616bb1 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -82,6 +82,7 @@ internal class CoreClasses
        import org.apache.flex.core.ILayoutParent; ILayoutParent;
     import org.apache.flex.core.IListPresentationModel; IListPresentationModel;
        import org.apache.flex.core.IMeasurementBead; IMeasurementBead;
+    import org.apache.flex.core.IModule; IModule;
     import org.apache.flex.core.IPanelModel; IPanelModel;
     import org.apache.flex.core.IParent; IParent;
     import org.apache.flex.core.IParentIUIBase; IParentIUIBase;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bbbd0f20/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IModule.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IModule.as 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IModule.as
new file mode 100644
index 0000000..844619a
--- /dev/null
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IModule.as
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.core
+{
+    /**
+     *  The compiler checks the main class to see if it implements the
+     *  IModule interface and generates bootstrapping code for a module
+     *  instead of an application.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+       public interface IModule
+       {
+       }
+}

Reply via email to