1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base; 28 29 import java.util.Hashtable ; 31 import org.objectweb.apollon.framework.Bean; 32 33 41 public class BaseHandlerResolver 42 implements HandlerResolver 43 { 44 private Hashtable convertion; 51 52 60 public BaseHandlerResolver() { 61 convertion = new Hashtable (); 62 63 convertion.put( 64 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentsupportedinterfaceBeanImpl", 65 "ccm.deployer.binder.Deployer"); 66 convertion.put( 67 "org.objectweb.openccm.descriptor.componentassembly.beans.ConnecteventBeanImpl", 68 "ccm.deployer.binder.Deployer"); 69 convertion.put( 70 "org.objectweb.openccm.descriptor.componentassembly.beans.ConnectinterfaceBeanImpl", 71 "ccm.deployer.binder.Deployer"); 72 convertion.put( 73 "org.objectweb.openccm.descriptor.componentassembly.beans.ConnectionsBeanImpl", 74 "ccm.deployer.binder.Deployer"); 75 convertion.put( 76 "org.objectweb.openccm.descriptor.componentassembly.beans.ConsumesportBeanImpl", 77 "ccm.deployer.binder.Deployer"); 78 convertion.put( 79 "org.objectweb.openccm.descriptor.componentassembly.beans.EmitsportBeanImpl", 80 "ccm.deployer.binder.Deployer"); 81 convertion.put( 82 "org.objectweb.openccm.descriptor.componentassembly.beans.ExistinghomeBeanImpl", 83 "ccm.deployer.installer.Deployer"); 84 convertion.put( 85 "org.objectweb.openccm.descriptor.componentassembly.beans.ExistinginterfaceBeanImpl", 86 "ccm.deployer.binder.Deployer"); 87 convertion.put( 88 "org.objectweb.openccm.descriptor.componentassembly.beans.HomeinterfaceBeanImpl", 89 "ccm.deployer.binder.Deployer"); 90 convertion.put( 91 "org.objectweb.openccm.descriptor.componentassembly.beans.ProvidesportBeanImpl", 92 "ccm.deployer.binder.Deployer"); 93 convertion.put( 94 "org.objectweb.openccm.descriptor.componentassembly.beans.PublishesportBeanImpl", 95 "ccm.deployer.binder.Deployer"); 96 convertion.put( 97 "org.objectweb.openccm.descriptor.componentassembly.beans.TraderqueryBeanImpl", 98 "ccm.deployer.binder.Deployer"); 99 convertion.put( 100 "org.objectweb.openccm.descriptor.componentassembly.beans.UsesportBeanImpl", 101 "ccm.deployer.binder.Deployer"); 102 convertion.put( 103 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentfileBeanImpl", 104 "ccm.deployer.installer.Deployer"); 105 convertion.put( 106 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentfilesBeanImpl", 107 "ccm.deployer.installer.Deployer"); 108 convertion.put( 109 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentinstantiationBeanImpl", 110 "ccm.deployer.installer.Deployer"); 111 convertion.put( 112 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentplacementBeanImpl", 113 "ccm.deployer.installer.Deployer"); 114 convertion.put( 115 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentpropertiesBeanImpl", 116 "ccm.deployer.installer.Deployer"); 117 convertion.put( 118 "org.objectweb.openccm.descriptor.componentassembly.beans.DestinationBeanImpl", 119 "ccm.deployer.installer.Deployer"); 120 convertion.put( 121 "org.objectweb.openccm.descriptor.componentassembly.beans.HomeplacementBeanImpl", 122 "ccm.deployer.installer.Deployer"); 123 convertion.put( 124 "org.objectweb.openccm.descriptor.componentassembly.beans.HostcollocationBeanImpl", 125 "ccm.deployer.installer.Deployer"); 126 convertion.put( 127 "org.objectweb.openccm.descriptor.componentassembly.beans.PartitioningBeanImpl", 128 "ccm.deployer.installer.Deployer"); 129 convertion.put( 130 "org.objectweb.openccm.descriptor.componentassembly.beans.ProcesscollocationBeanImpl", 131 "ccm.deployer.installer.Deployer"); 132 convertion.put( 133 "org.objectweb.openccm.descriptor.componentassembly.beans.NodeBeanImpl", 134 "ccm.deployer.installer.Deployer"); 135 convertion.put( 136 "org.objectweb.openccm.descriptor.componentassembly.beans.RegistercomponentBeanImpl", 137 "ccm.deployer.registrar.Deployer"); 138 convertion.put( 139 "org.objectweb.openccm.descriptor.componentassembly.beans.RegisterwithhomefinderBeanImpl", 140 "ccm.deployer.registrar.Deployer"); 141 convertion.put( 142 "org.objectweb.openccm.descriptor.componentassembly.beans.RegisterwithnamingBeanImpl", 143 "ccm.deployer.registrar.Deployer"); 144 convertion.put( 145 "org.objectweb.openccm.descriptor.componentassembly.beans.RegisterwithtraderBeanImpl", 146 "ccm.deployer.registrar.Deployer"); 147 convertion.put( 148 "org.objectweb.openccm.descriptor.componentassembly.beans.ComponentassemblyBeanImpl", 149 "ccm.deployer.root.Deployer"); 150 convertion.put( 151 "org.objectweb.openccm.descriptor.componentassembly.beans.FileinarchiveBeanImpl", 152 "ccm.deployer.util.Deployer"); 153 convertion.put( 154 "org.objectweb.openccm.descriptor.componentassembly.beans.FindbyBeanImpl", 155 "ccm.deployer.util.Deployer"); 156 convertion.put( 157 "org.objectweb.openccm.descriptor.componentassembly.beans.LinkBeanImpl", 158 "ccm.deployer.util.Deployer"); 159 convertion.put( 160 "org.objectweb.openccm.descriptor.softpkg.beans.CodeBeanImpl", 161 "ccm.Deployer"); 162 convertion.put( 163 "org.objectweb.openccm.descriptor.softpkg.beans.DependencyBeanImpl", 164 "ccm.Deployer"); 165 convertion.put( 166 "org.objectweb.openccm.descriptor.softpkg.beans.FileinarchiveBeanImpl", 167 "ccm.Deployer"); 168 convertion.put( 169 "org.objectweb.openccm.descriptor.softpkg.beans.ImplementationBeanImpl", 170 "ccm.Deployer"); 171 convertion.put( 172 "org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBeanImpl", 173 "ccm.Deployer"); 174 convertion.put( 175 "org.objectweb.openccm.descriptor.softpkg.beans.DescriptorBeanImpl", 176 "ccm.Deployer"); 177 convertion.put( 178 "org.objectweb.openccm.descriptor.softpkg.beans.LinkBeanImpl", 179 "ccm.Deployer"); 180 convertion.put( 181 "org.objectweb.openccm.descriptor.corbacomponent.beans.CorbacomponentBeanImpl", 182 "ccm.Deployer"); 183 184 } 185 196 206 public String 207 getExtension(Bean bean) 208 { 209 return (String ) convertion.get(bean.getClass().getName()); 210 } 211 212 } 213 | Popular Tags |