Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen/wamas/Test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/src-gen/wamas/Test Added Files: H2.java C1.java H2Implicit.java CCM_C1_ContextImpl.java H1Explicit.java CCM_C2_Context.java I3Adapter.java CCM_I1.java H2Explicit.java H1Implicit.java H1Adapter.java I2.java CCM_C1_Context.java C1Adapter.java C2Adapter.java CCM_I3.java CCM_C2.java CCM_H2.java CCM_H1Explicit.java CCM_H2Explicit.java H2Deployment.java CCM_C2_ContextImpl.java CCM_H2Implicit.java I1Adapter.java I1.java H2Adapter.java I2Adapter.java CCM_H1.java CCM_H1Implicit.java H1Deployment.java CCM_I2.java I3.java C2.java H1.java CCM_C1.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: CCM_C2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; import Components.SessionComponent; public interface CCM_C2 extends SessionComponent { /** Component attribute accessor methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet implementation factory methods */ wamas.Test.CCM_I2 get_i2(); } --- NEW FILE: C2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.AlreadyConnected; import Components.CCMObject; import Components.CCMException; import Components.Cookie; import Components.ExceededConnectionLimit; import Components.InvalidConnection; import Components.NoConnection; public interface C2 extends CCMObject { /** Attribute equivalent methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet equivalent methods */ wamas.Test.I2 provide_i2(); /** Receptacle equivalent methods */ void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection; wamas.Test.I3 disconnect_i3() throws NoConnection; wamas.Test.I3 get_connection_i3(); } --- NEW FILE: C2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.AlreadyConnected; import Components.Assembly; import Components.CCMException; import Components.CCMHome; import Components.Cookie; import Components.CookieImpl; import Components.CookieRequired; import Components.ExceededConnectionLimit; import Components.InvalidConfiguration; import Components.InvalidConnection; import Components.InvalidName; import Components.NoConnection; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class C2Adapter implements C2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_C2 localInterface; private CCM_C2_Context ctx; private Assembly assembly; /** Facet adapter references */ private wamas.Test.I2 i2FacetAdapter; /** Receptacle references */ private wamas.Test.I3 i3Receptacle = null; protected C2Adapter() { this(null, null); } public C2Adapter(CCM_C2 localInterface) { this(localInterface, null); } public C2Adapter(CCM_C2 localInterface, Assembly assembly) { logger.fine("localInterface = " + localInterface + ", " + assembly); this.localInterface = localInterface; this.assembly = assembly; } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /* * Equivalent interface methods */ /** Attribute equivalent methods */ public int b() throws CCMException { int result = localInterface.b(); logger.fine("result = " + result); return result; } public void b(int value) throws CCMException { logger.fine("value = " + value); localInterface.b(value); } /** Facet equivalent methods */ public wamas.Test.I2 provide_i2() { logger.fine(""); if(i2FacetAdapter == null) { i2FacetAdapter = new wamas.Test.I2Adapter(localInterface.get_i2()); } return i2FacetAdapter; } /** Receptacle equivalent methods */ public void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection { logger.fine("obj = " + localObj); if(i3Receptacle != null) { throw new AlreadyConnected(); } else { i3Receptacle = localObj; } } public wamas.Test.I3 disconnect_i3() throws NoConnection { logger.fine(""); if(i3Receptacle == null) { throw new NoConnection(); } else { wamas.Test.I3 f = i3Receptacle; i3Receptacle = null; return f; } } public wamas.Test.I3 get_connection_i3() { logger.fine(""); return i3Receptacle; } /** CCMObject interface methods */ public void configuration_complete() throws InvalidConfiguration { logger.fine(""); ctx = new CCM_C2_ContextImpl(this); try { if(assembly != null) { assembly.configuration_complete(); } localInterface.set_session_context(ctx); localInterface.ccm_activate(); } catch(CCMException e) { throw new InvalidConfiguration(); } } public void remove() throws RemoveFailure { logger.fine(""); try { localInterface.ccm_remove(); if(assembly != null) { assembly.tear_down(); assembly = null; } } catch(CCMException e) { throw new RemoveFailure(); } } public CCMHome get_ccm_home() { throw new RuntimeException("Not implemented!"); } /** Navigation interface methods */ public Object provide_facet(String name) throws InvalidName { logger.fine("name = " + name); if(name == null) { throw new InvalidName(); } else if(name.equals("i2")) { return provide_i2(); } throw new InvalidName(); } /** Receptacle methods */ public Cookie connect(String name, Object obj) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit { logger.fine("name = " + name + ", obj = " + obj); if(name == null) { throw new InvalidName(); } if(obj == null) { throw new InvalidConnection(); } else if(name.equals("i3")) { connect_i3((wamas.Test.I3) obj); return new CookieImpl(); } else { throw new InvalidName(); } } public void disconnect(String name, Cookie ck) throws InvalidName, InvalidConnection, CookieRequired, NoConnection { logger.fine("name = " + name + ", ck = " + ck ); if(name == null) { throw new InvalidName(); } if(ck == null) { throw new CookieRequired(); } else if(name.equals("i3")) { disconnect_i3(); } else { throw new InvalidName(); } } } --- NEW FILE: I3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I3 { } --- NEW FILE: CCM_C1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; import Components.SessionComponent; public interface CCM_C1 extends SessionComponent { /** Component attribute accessor methods */ String a1() throws CCMException; void a1(String value) throws CCMException; int a2() throws CCMException; void a2(int value) throws CCMException; /** Facet implementation factory methods */ wamas.Test.CCM_I1 get_i1(); } --- NEW FILE: I1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I1 { String value () throws CCMException; } --- NEW FILE: H1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.Assembly; import Components.AssemblyFactory; import Components.CCMException; import Components.CCMObject; import Components.CreateFailure; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class H1Adapter implements H1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_H1 localInterface; private AssemblyFactory assemblyFactory; protected H1Adapter() { this(null, null); } public H1Adapter(CCM_H1 localInterface) { this(localInterface, null); } public H1Adapter(CCM_H1 localInterface, AssemblyFactory assemblyFactory) { logger.fine("localInterface = " + localInterface + ", " + assemblyFactory); this.localInterface = localInterface; this.assemblyFactory = assemblyFactory; } public C1 create() throws CreateFailure { logger.fine(""); try { CCM_C1 c = (CCM_C1)localInterface.create(); C1 component; if(assemblyFactory != null) { Assembly assembly = assemblyFactory.create(); component = new C1Adapter(c, assembly); assembly.build(component); } else { component = new C1Adapter(c); } return component; } catch(CCMException e) { throw new CreateFailure(); } } public void remove_component(CCMObject component) throws CCMException, RemoveFailure { logger.fine(""); component.remove(); } public CCMObject create_component() throws CCMException, CreateFailure { logger.fine(""); return create(); } } --- NEW FILE: C1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.AlreadyConnected; import Components.CCMObject; import Components.CCMException; import Components.Cookie; import Components.ExceededConnectionLimit; import Components.InvalidConnection; import Components.NoConnection; public interface C1 extends CCMObject { /** Attribute equivalent methods */ String a1() throws CCMException; void a1(String value) throws CCMException; int a2() throws CCMException; void a2(int value) throws CCMException; /** Facet equivalent methods */ wamas.Test.I1 provide_i1(); /** Receptacle equivalent methods */ void connect_i2(wamas.Test.I2 localObj) throws AlreadyConnected, InvalidConnection; wamas.Test.I2 disconnect_i2() throws NoConnection; wamas.Test.I2 get_connection_i2(); } --- NEW FILE: H1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface H1 extends H1Explicit, H1Implicit { } --- NEW FILE: H1Deployment.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMHome; import Components.CCMException; import Components.AssemblyFactory; import Components.HomeFinder; import ccmtools.local.ServiceLocator; public class H1Deployment { /** Default logger instance */ private static Logger logger = ServiceLocator.instance().getLogger(); public static CCMHome create() throws CCMException { logger.fine(""); return new H1Adapter((CCM_H1)H1Factory.create()); } public static CCMHome create(AssemblyFactory factory) throws CCMException { logger.fine("assemblyFactory = " + factory); return new H1Adapter((CCM_H1)H1Factory.create(), factory); } public static void deploy(String name) throws CCMException { logger.fine("name = " + name); HomeFinder.instance().register_home(create(), name); } public static void deploy(String name, AssemblyFactory factory) throws CCMException { logger.fine("name = " + name + ", assemblyFactory = " + factory); HomeFinder.instance().register_home(create(factory), name); } public static void undeploy(String name) { logger.fine("name = " + name); HomeFinder.instance().unregister_home(name); } } --- NEW FILE: I1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I1Adapter implements I1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I1 localInterface; protected I1Adapter() { logger.fine(""); } public I1Adapter(CCM_I1 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } public String value() throws CCMException { logger.fine(""); return localInterface.value(); } } --- NEW FILE: I3Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I3Adapter implements I3 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I3 localInterface; protected I3Adapter() { logger.fine(""); } public I3Adapter(CCM_I3 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } } --- NEW FILE: H2Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.KeylessCCMHome; import Components.CreateFailure; public interface H2Implicit extends KeylessCCMHome { C2 create() throws CreateFailure; } --- NEW FILE: H1Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.KeylessCCMHome; import Components.CreateFailure; public interface H1Implicit extends KeylessCCMHome { C1 create() throws CreateFailure; } --- NEW FILE: CCM_I2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I2 extends I2 { } --- NEW FILE: CCM_I1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I1 extends I1 { } --- NEW FILE: H2Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMHome; public interface H2Explicit extends CCMHome { } --- NEW FILE: CCM_C1_ContextImpl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.IllegalState; import Components.NoConnection; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; public class CCM_C1_ContextImpl implements wamas.Test.CCM_C1_Context { private Logger logger = ServiceLocator.instance().getLogger(); private C1 component; public CCM_C1_ContextImpl(C1 component) { logger.fine("component = " + component); this.component = component; } /** Receptacle access methods */ public wamas.Test.I2 get_connection_i2() throws NoConnection { logger.fine(""); return component.get_connection_i2(); } /** CCMContext methods */ public HomeExecutorBase get_CCM_home() { logger.fine(""); throw new RuntimeException("Not implemented!"); } /** SessionContext methods */ public Object get_CCM_object() throws IllegalState { logger.fine(""); throw new RuntimeException("Not implemented!"); } } --- NEW FILE: CCM_H1Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1Explicit extends Components.HomeExecutorBase { } --- NEW FILE: CCM_C2_Context.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.NoConnection; public interface CCM_C2_Context extends Components.SessionContext { /** Receptacle access methods */ wamas.Test.I3 get_connection_i3() throws NoConnection; } --- NEW FILE: CCM_C1_Context.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.NoConnection; public interface CCM_C1_Context extends Components.SessionContext { /** Receptacle access methods */ wamas.Test.I2 get_connection_i2() throws NoConnection; } --- NEW FILE: H1Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMHome; public interface H1Explicit extends CCMHome { } --- NEW FILE: CCM_H1Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1Implicit { Components.EnterpriseComponent create() throws Components.CCMException; } --- NEW FILE: H2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface H2 extends H2Explicit, H2Implicit { } --- NEW FILE: I2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I2Adapter implements I2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I2 localInterface; protected I2Adapter() { logger.fine(""); } public I2Adapter(CCM_I2 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } } --- NEW FILE: CCM_H2Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2Explicit extends Components.HomeExecutorBase { } --- NEW FILE: CCM_C2_ContextImpl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.IllegalState; import Components.NoConnection; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; public class CCM_C2_ContextImpl implements wamas.Test.CCM_C2_Context { private Logger logger = ServiceLocator.instance().getLogger(); private C2 component; public CCM_C2_ContextImpl(C2 component) { logger.fine("component = " + component); this.component = component; } /** Receptacle access methods */ public wamas.Test.I3 get_connection_i3() throws NoConnection { logger.fine(""); return component.get_connection_i3(); } /** CCMContext methods */ public HomeExecutorBase get_CCM_home() { logger.fine(""); throw new RuntimeException("Not implemented!"); } /** SessionContext methods */ public Object get_CCM_object() throws IllegalState { logger.fine(""); throw new RuntimeException("Not implemented!"); } } --- NEW FILE: I2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I2 { } --- NEW FILE: H2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.Assembly; import Components.AssemblyFactory; import Components.CCMException; import Components.CCMObject; import Components.CreateFailure; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class H2Adapter implements H2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_H2 localInterface; private AssemblyFactory assemblyFactory; protected H2Adapter() { this(null, null); } public H2Adapter(CCM_H2 localInterface) { this(localInterface, null); } public H2Adapter(CCM_H2 localInterface, AssemblyFactory assemblyFactory) { logger.fine("localInterface = " + localInterface + ", " + assemblyFactory); this.localInterface = localInterface; this.assemblyFactory = assemblyFactory; } public C2 create() throws CreateFailure { logger.fine(""); try { CCM_C2 c = (CCM_C2)localInterface.create(); C2 component; if(assemblyFactory != null) { Assembly assembly = assemblyFactory.create(); component = new C2Adapter(c, assembly); assembly.build(component); } else { component = new C2Adapter(c); } return component; } catch(CCMException e) { throw new CreateFailure(); } } public void remove_component(CCMObject component) throws CCMException, RemoveFailure { logger.fine(""); component.remove(); } public CCMObject create_component() throws CCMException, CreateFailure { logger.fine(""); return create(); } } --- NEW FILE: CCM_H2Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2Implicit { Components.EnterpriseComponent create() throws Components.CCMException; } --- NEW FILE: CCM_H1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1 extends CCM_H1Explicit, CCM_H1Implicit { } --- NEW FILE: H2Deployment.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMHome; import Components.CCMException; import Components.AssemblyFactory; import Components.HomeFinder; import ccmtools.local.ServiceLocator; public class H2Deployment { /** Default logger instance */ private static Logger logger = ServiceLocator.instance().getLogger(); public static CCMHome create() throws CCMException { logger.fine(""); return new H2Adapter((CCM_H2)H2Factory.create()); } public static CCMHome create(AssemblyFactory factory) throws CCMException { logger.fine("assemblyFactory = " + factory); return new H2Adapter((CCM_H2)H2Factory.create(), factory); } public static void deploy(String name) throws CCMException { logger.fine("name = " + name); HomeFinder.instance().register_home(create(), name); } public static void deploy(String name, AssemblyFactory factory) throws CCMException { logger.fine("name = " + name + ", assemblyFactory = " + factory); HomeFinder.instance().register_home(create(factory), name); } public static void undeploy(String name) { logger.fine("name = " + name); HomeFinder.instance().unregister_home(name); } } --- NEW FILE: CCM_I3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I3 extends I3 { } --- NEW FILE: C1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.AlreadyConnected; import Components.Assembly; import Components.CCMException; import Components.CCMHome; import Components.Cookie; import Components.CookieImpl; import Components.CookieRequired; import Components.ExceededConnectionLimit; import Components.InvalidConfiguration; import Components.InvalidConnection; import Components.InvalidName; import Components.NoConnection; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class C1Adapter implements C1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_C1 localInterface; private CCM_C1_Context ctx; private Assembly assembly; /** Facet adapter references */ private wamas.Test.I1 i1FacetAdapter; /** Receptacle references */ private wamas.Test.I2 i2Receptacle = null; protected C1Adapter() { this(null, null); } public C1Adapter(CCM_C1 localInterface) { this(localInterface, null); } public C1Adapter(CCM_C1 localInterface, Assembly assembly) { logger.fine("localInterface = " + localInterface + ", " + assembly); this.localInterface = localInterface; this.assembly = assembly; } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /* * Equivalent interface methods */ /** Attribute equivalent methods */ public String a1() throws CCMException { String result = localInterface.a1(); logger.fine("result = " + result); return result; } public void a1(String value) throws CCMException { logger.fine("value = " + value); localInterface.a1(value); } public int a2() throws CCMException { int result = localInterface.a2(); logger.fine("result = " + result); return result; } public void a2(int value) throws CCMException { logger.fine("value = " + value); localInterface.a2(value); } /** Facet equivalent methods */ public wamas.Test.I1 provide_i1() { logger.fine(""); if(i1FacetAdapter == null) { i1FacetAdapter = new wamas.Test.I1Adapter(localInterface.get_i1()); } return i1FacetAdapter; } /** Receptacle equivalent methods */ public void connect_i2(wamas.Test.I2 localObj) throws AlreadyConnected, InvalidConnection { logger.fine("obj = " + localObj); if(i2Receptacle != null) { throw new AlreadyConnected(); } else { i2Receptacle = localObj; } } public wamas.Test.I2 disconnect_i2() throws NoConnection { logger.fine(""); if(i2Receptacle == null) { throw new NoConnection(); } else { wamas.Test.I2 f = i2Receptacle; i2Receptacle = null; return f; } } public wamas.Test.I2 get_connection_i2() { logger.fine(""); return i2Receptacle; } /** CCMObject interface methods */ public void configuration_complete() throws InvalidConfiguration { logger.fine(""); ctx = new CCM_C1_ContextImpl(this); try { if(assembly != null) { assembly.configuration_complete(); } localInterface.set_session_context(ctx); localInterface.ccm_activate(); } catch(CCMException e) { throw new InvalidConfiguration(); } } public void remove() throws RemoveFailure { logger.fine(""); try { localInterface.ccm_remove(); if(assembly != null) { assembly.tear_down(); assembly = null; } } catch(CCMException e) { throw new RemoveFailure(); } } public CCMHome get_ccm_home() { throw new RuntimeException("Not implemented!"); } /** Navigation interface methods */ public Object provide_facet(String name) throws InvalidName { logger.fine("name = " + name); if(name == null) { throw new InvalidName(); } else if(name.equals("i1")) { return provide_i1(); } throw new InvalidName(); } /** Receptacle methods */ public Cookie connect(String name, Object obj) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit { logger.fine("name = " + name + ", obj = " + obj); if(name == null) { throw new InvalidName(); } if(obj == null) { throw new InvalidConnection(); } else if(name.equals("i2")) { connect_i2((wamas.Test.I2) obj); return new CookieImpl(); } else { throw new InvalidName(); } } public void disconnect(String name, Cookie ck) throws InvalidName, InvalidConnection, CookieRequired, NoConnection { logger.fine("name = " + name + ", ck = " + ck ); if(name == null) { throw new InvalidName(); } if(ck == null) { throw new CookieRequired(); } else if(name.equals("i2")) { disconnect_i2(); } else { throw new InvalidName(); } } } --- NEW FILE: CCM_H2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2 extends CCM_H2Explicit, CCM_H2Implicit { } |