KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > dream > control > activity > task > UseTaskActivationControllerMixin


1 /**
2  * Dream
3  * Copyright (C) 2003-2004 INRIA Rhone-Alpes
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Contact: dream@objectweb.org
20  *
21  * Initial developer(s): Vivien Quema
22  * Contributor(s):
23  */

24
25 package org.objectweb.dream.control.activity.task;
26
27 import org.objectweb.fractal.api.factory.InstantiationException;
28 import org.objectweb.fractal.julia.InitializationContext;
29
30 /**
31  * Provides a {@link TaskController }field to a
32  * {@link org.objectweb.fractal.julia.Controller}.
33  */

34 public abstract class UseTaskActivationControllerMixin
35 {
36
37   // -------------------------------------------------------------------------
38
// Private constructor
39
// -------------------------------------------------------------------------
40

41   private UseTaskActivationControllerMixin()
42   {
43   }
44
45   // -------------------------------------------------------------------------
46
// Fields and methods added and overriden by the mixin class
47
// -------------------------------------------------------------------------
48

49   /**
50    * The {@link TaskActivationController }interface of the component to which
51    * this controller object belongs.
52    */

53   public TaskActivationController weaveableTAC;
54
55   /**
56    * Initializes the fields of this mixin and then calls the overriden method.
57    *
58    * @see org.objectweb.fractal.julia.Controller#initFcController(InitializationContext)
59    */

60   public void initFcController(final InitializationContext ic)
61       throws InstantiationException JavaDoc
62   {
63     weaveableTAC = (TaskActivationController) ic
64         .getInterface("task-activation-controller");
65     _super_initFcController(ic);
66   }
67
68   // -------------------------------------------------------------------------
69
// Fields and methods required by the mixin class in the base class
70
// -------------------------------------------------------------------------
71

72   /**
73    * The
74    * {@link org.objectweb.fractal.julia.Controller#initFcController(InitializationContext) initFcController}
75    * method overriden by this mixin.
76    *
77    * @see org.objectweb.fractal.julia.Controller#initFcController(InitializationContext)
78    */

79   public abstract void _super_initFcController(InitializationContext i)
80       throws InstantiationException JavaDoc;
81
82 }
Popular Tags