1 23 24 package org.objectweb.fractal.julia.type; 25 26 import org.objectweb.fractal.api.factory.InstantiationException; 27 import org.objectweb.fractal.api.type.ComponentType; 28 import org.objectweb.fractal.api.type.InterfaceType; 29 import org.objectweb.fractal.api.type.TypeFactory; 30 31 40 41 public class BasicTypeFactoryMixin implements TypeFactory { 42 43 47 public BasicTypeFactoryMixin () { 48 } 49 50 54 public InterfaceType createFcItfType ( 55 final String name, 56 final String signature, 57 final boolean isClient, 58 final boolean isOptional, 59 final boolean isCollection) throws InstantiationException 60 { 61 return new BasicInterfaceType( 62 name, signature, isClient, isOptional, isCollection); 63 } 64 65 public ComponentType createFcType (final InterfaceType[] interfaceTypes) 66 throws InstantiationException 67 { 68 return new BasicComponentType(interfaceTypes); 69 } 70 } 71 | Popular Tags |