-----------------------------------------------------------------------
--  asf-lifecycles-default -- Default Lifecycle handler
--  Copyright (C) 2010 Stephane Carrez
--  Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
--  Licensed 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 ASF.Lifecycles.Default is

   type Lifecycle is new ASF.Lifecycles.Lifecycle with null record;

   --  Creates the phase controllers by invoking the <b>Set_Controller</b>
   --  procedure for each phase.  This is called by <b>Initialize</b> to build
   --  the lifecycle handler.
   procedure Create_Phase_Controllers (Controller : in out Lifecycle);

   --  Initialize the the lifecycle handler.
   overriding
   procedure Initialize (Controller : in out Lifecycle;
                         App        : access ASF.Applications.Main.Application'Class);

end ASF.Lifecycles.Default;

-----------------------------------------------------------------------
--  asf-lifecycles-default -- Default Lifecycle handler
--  Copyright (C) 2010, 2018 Stephane Carrez
--  Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
--  Licensed 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 ASF.Lifecycles.Default is

   type Lifecycle is new ASF.Lifecycles.Lifecycle with null record;

   --  Creates the phase controllers by invoking the <b>Set_Controller</b>
   --  procedure for each phase.  This is called by <b>Initialize</b> to build
   --  the lifecycle handler.
   procedure Create_Phase_Controllers (Controller : in out Lifecycle);

   --  Initialize the the lifecycle handler.
   overriding
   procedure Initialize (Controller : in out Lifecycle;
                         Views      : access ASF.Applications.Views.View_Handler'Class);

end ASF.Lifecycles.Default;

Update Initialize to use a ASF.Applications.Views.View_Handler'Class
Update Initialize to use a ASF.Applications.Views.View_Handler'Class

stcarrez/ada-asf,stcarrez/ada-asf,stcarrez/ada-asf