OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | fractal-commits List | Febuary 2007 Index

<--  Date Index  --> <--  Thread Index  -->

CVS update of julia/src/org/objectweb/fractal/juliak/control/attribute (1 file)


    Date: Monday, February 19, 2007 @ 13:16:22
  Author: seintur
    Path: .../fractal/julia/src/org/objectweb/fractal/juliak/control/attribute

 Removed: BasicAttributeControllerMixin.java

Removing dead code.


------------------------------------+
 BasicAttributeControllerMixin.java |  101 -----------------------------------
 1 files changed, 101 deletions(-)


Index: 
julia/src/org/objectweb/fractal/juliak/control/attribute/BasicAttributeControllerMixin.java
diff -u 
julia/src/org/objectweb/fractal/juliak/control/attribute/BasicAttributeControllerMixin.java:1.2
 
julia/src/org/objectweb/fractal/juliak/control/attribute/BasicAttributeControllerMixin.java:removed
--- 
julia/src/org/objectweb/fractal/juliak/control/attribute/BasicAttributeControllerMixin.java:1.2
     Wed Jan 17 15:09:15 2007
+++ 
julia/src/org/objectweb/fractal/juliak/control/attribute/BasicAttributeControllerMixin.java
 Mon Feb 19 13:16:22 2007
@@ -1,101 +0,0 @@
-/***
- * Julia
- * Copyright (C) 2005-2006 INRIA, France Telecom, USTL
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * Contact: Lionel.Seinturier@xxxxxxx
- *
- * Author: Lionel Seinturier
- */
-
-package org.objectweb.fractal.juliak.control.attribute;
-
-import org.objectweb.fractal.api.control.AttributeController;
-import org.objectweb.fractal.api.factory.InstantiationException;
-import org.objectweb.fractal.api.type.InterfaceType;
-import org.objectweb.fractal.julia.BasicComponentInterface;
-import org.objectweb.fractal.julia.InitializationContext;
-import 
org.objectweb.fractal.julia.control.attribute.CloneableAttributeController;
-import org.objectweb.fractal.juliak.asm.ClassGenerator;
-import 
org.objectweb.fractal.juliak.asm.CloneableAttributeControllerClassGenerator;
-import org.objectweb.fractal.juliak.factory.InstanceGenerator;
-
-
-/**
- * Provides as a mixin layer, a basic implementation of the {@link
- * CloneableAttributeController} interface.
- * 
- * @author Lionel Seinturier <Lionel.Seinturier@xxxxxxx>
- * @since 2.5
- */
-public abstract class BasicAttributeControllerMixin
-    implements CloneableAttributeController {
-    
-    private BasicAttributeControllerMixin() {}
-
-    
-    public void cloneFcAttributes(AttributeController dst) {
-        delegate.cloneFcAttributes(dst);
-    }
-    private CloneableAttributeController delegate;
-
-    
-    public void initFcController(InitializationContext ic)
-    throws InstantiationException {        
-        
-        /*
-         * Retrieve the attribute-controller interface.
-         */
-        Object itf = ic.interfaces.get("attribute-controller");
-        if( ! (itf instanceof BasicComponentInterface) ) {
-            final String msg =
-                "The interface for attribute-controller should implement 
o.o.f.j.BasicComponentInterface";
-            throw new InstantiationException(msg);
-        }
-        BasicComponentInterface citf = (BasicComponentInterface) itf;
-        InterfaceType it = (InterfaceType) citf.getFcItfType();
-        
-        /*
-         * Generate a cloneable (in the sense CloneableAttributeController)
-         * version of the attribute-controller.
-         */
-        if( ig == null ) {
-            ClassGenerator caccg =
-                new CloneableAttributeControllerClassGenerator();
-            ig = new InstanceGenerator(caccg);
-        }
-        Object o = ig.generate(it, null);
-        if( !(o instanceof CloneableAttributeController) ) {
-            final String msg =
-                "The generated instance should implement 
o.o.f.j.control.attribute.CloneableAttributeController";
-            throw new InstantiationException(msg);
-        }
-        delegate = (CloneableAttributeController) o;
-        
-        /*
-         * Replace the original implementation of the attribute-controller by
-         * the generated version.
-         */
-        citf.setFcItfImpl(o);
-
-        _super_initFcController(ic);
-    }
-    
-    private InstanceGenerator ig;
-
-    abstract void _super_initFcController(InitializationContext ic)
-    throws InstantiationException;
-}



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.