1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 40 41 public class AssemblyManagerRegistrationImpl 42 extends org.objectweb.openccm.OpenCCM_DCI 43 .AssemblyFactoryManagerSessionComposition 44 .AssemblyManagerRegistrationSeg 45 { 46 67 public org.omg.Components.Cookie 68 register_assembly_manager(org.objectweb.openccm 69 .OpenCCM_DCI.AssemblyManager assembly_manager) 70 { 71 try{ 72 return 74 ((org.objectweb.openccm 75 .OpenCCM_DCI.AssemblyFactoryManagerCCM)get_context()) 76 .connect_assembly_managers(assembly_manager) ; 77 78 } 79 catch(Exception e){ 80 System.err.println("Error occured during the AssemblyManager connection"); 81 e.printStackTrace(); 82 } 83 return null; 84 } 85 86 91 public void 92 unregister_assembly_manager(org.omg.Components.Cookie cookie) 93 throws org.omg.Components.CookieRequired 94 { 95 try{ 96 ((org.objectweb.openccm 98 .OpenCCM_DCI.AssemblyFactoryManagerCCM)get_context()) 99 .disconnect_assembly_managers(cookie); 100 } 101 catch(Exception e){ 102 e.printStackTrace(); 103 throw new org.omg.Components.CookieRequired(); 104 } 105 } 106 } 107 | Popular Tags |