1 22 package org.jboss.kernel.plugins.deployment.xml; 23 24 import javax.xml.namespace.QName ; 25 26 import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding; 27 import org.jboss.xb.binding.sunday.unmarshalling.TypeBinding; 28 29 36 public class BeanSchemaBinding20 37 { 38 39 public static final String BEAN_DEPLOYER_NS = "urn:jboss:bean-deployer:2.0"; 40 41 42 public static final QName deploymentTypeQName = new QName (BEAN_DEPLOYER_NS, "deploymentType"); 43 44 45 public static final QName beanTypeQName = new QName (BEAN_DEPLOYER_NS, "beanType"); 46 47 48 public static final QName beanQName = new QName (BEAN_DEPLOYER_NS, "bean"); 49 50 51 public static final QName beanFactoryTypeQName = new QName (BEAN_DEPLOYER_NS, "beanfactoryType"); 52 53 54 public static final QName beanFactoryQName = new QName (BEAN_DEPLOYER_NS, "beanfactory"); 55 56 57 public static final QName annotationTypeQName = new QName (BEAN_DEPLOYER_NS, "annotationType"); 58 59 60 public static final QName annotationQName = new QName (BEAN_DEPLOYER_NS, "annotation"); 61 62 63 public static final QName attributeQName = new QName (BEAN_DEPLOYER_NS, "attribute"); 64 65 66 public static final QName classloaderTypeQName = new QName (BEAN_DEPLOYER_NS, "classloaderType"); 67 68 69 public static final QName classloaderQName = new QName (BEAN_DEPLOYER_NS, "classloader"); 70 71 72 public static final QName constructorTypeQName = new QName (BEAN_DEPLOYER_NS, "constructorType"); 73 74 75 public static final QName constructorQName = new QName (BEAN_DEPLOYER_NS, "constructor"); 76 77 78 public static final QName factoryQName = new QName (BEAN_DEPLOYER_NS, "factory"); 79 80 81 public static final QName parameterTypeQName = new QName (BEAN_DEPLOYER_NS, "parameterType"); 82 83 84 public static final QName parameterQName = new QName (BEAN_DEPLOYER_NS, "parameter"); 85 86 87 public static final QName lifecycleTypeQName = new QName (BEAN_DEPLOYER_NS, "lifecycleType"); 88 89 90 public static final QName createQName = new QName (BEAN_DEPLOYER_NS, "create"); 91 92 93 public static final QName startQName = new QName (BEAN_DEPLOYER_NS, "start"); 94 95 96 public static final QName stopQName = new QName (BEAN_DEPLOYER_NS, "stop"); 97 98 99 public static final QName destroyQName = new QName (BEAN_DEPLOYER_NS, "destroy"); 100 101 102 public static final QName installTypeQName = new QName (BEAN_DEPLOYER_NS, "installType"); 103 104 105 public static final QName installQName = new QName (BEAN_DEPLOYER_NS, "install"); 106 107 108 public static final QName uninstallQName = new QName (BEAN_DEPLOYER_NS, "uninstall"); 109 110 111 public static final QName propertyTypeQName = new QName (BEAN_DEPLOYER_NS, "propertyType"); 112 113 114 public static final QName propertyQName = new QName (BEAN_DEPLOYER_NS, "property"); 115 116 117 public static final QName dependsTypeQName = new QName (BEAN_DEPLOYER_NS, "dependsType"); 118 119 120 public static final QName dependsQName = new QName (BEAN_DEPLOYER_NS, "depends"); 121 122 123 public static final QName demandTypeQName = new QName (BEAN_DEPLOYER_NS, "demandType"); 124 125 126 public static final QName demandQName = new QName (BEAN_DEPLOYER_NS, "demand"); 127 128 129 public static final QName supplyTypeQName = new QName (BEAN_DEPLOYER_NS, "supplyType"); 130 131 132 public static final QName supplyQName = new QName (BEAN_DEPLOYER_NS, "supply"); 133 134 135 public static final QName dependencyTypeQName = new QName (BEAN_DEPLOYER_NS, "dependencyType"); 136 137 138 public static final QName injectionTypeQName = new QName (BEAN_DEPLOYER_NS, "injectionType"); 139 140 141 public static final QName factoryTypeQName = new QName (BEAN_DEPLOYER_NS, "factoryType"); 142 143 144 public static final QName injectQName = new QName (BEAN_DEPLOYER_NS, "inject"); 145 146 147 public static final QName plainValueTypeQName = new QName (BEAN_DEPLOYER_NS, "plainValueType"); 148 149 150 public static final QName valueTypeQName = new QName (BEAN_DEPLOYER_NS, "valueType"); 151 152 153 public static final QName valueQName = new QName (BEAN_DEPLOYER_NS, "value"); 154 155 156 public static final QName nullQName = new QName (BEAN_DEPLOYER_NS, "null"); 157 158 159 public static final QName thisQName = new QName (BEAN_DEPLOYER_NS, "this"); 160 161 162 public static final QName collectionTypeQName = new QName (BEAN_DEPLOYER_NS, "collectionType"); 163 164 165 public static final QName collectionQName = new QName (BEAN_DEPLOYER_NS, "collection"); 166 167 168 public static final QName listTypeQName = new QName (BEAN_DEPLOYER_NS, "listType"); 169 170 171 public static final QName listQName = new QName (BEAN_DEPLOYER_NS, "list"); 172 173 174 public static final QName setTypeQName = new QName (BEAN_DEPLOYER_NS, "setType"); 175 176 177 public static final QName setQName = new QName (BEAN_DEPLOYER_NS, "set"); 178 179 180 public static final QName arrayTypeQName = new QName (BEAN_DEPLOYER_NS, "arrayType"); 181 182 183 public static final QName arrayQName = new QName (BEAN_DEPLOYER_NS, "array"); 184 185 186 public static final QName mapTypeQName = new QName (BEAN_DEPLOYER_NS, "mapType"); 187 188 189 public static final QName mapQName = new QName (BEAN_DEPLOYER_NS, "map"); 190 191 192 public static final QName entryTypeQName = new QName (BEAN_DEPLOYER_NS, "entryType"); 193 194 195 public static final QName entryQName = new QName (BEAN_DEPLOYER_NS, "entry"); 196 197 198 public static final QName keyQName = new QName (BEAN_DEPLOYER_NS, "key"); 199 200 205 public static void init(SchemaBinding schemaBinding) 206 { 207 initDeployment(schemaBinding); 208 initBean(schemaBinding); 209 initBeanFactory(schemaBinding); 210 initArtifacts(schemaBinding); 211 } 212 213 218 public static void initDeployment(SchemaBinding schemaBinding) 219 { 220 TypeBinding deploymentType = schemaBinding.getType(deploymentTypeQName); 222 BeanSchemaBindingHelper.initDeploymentHandlers(deploymentType); 223 } 224 225 230 public static void initBean(SchemaBinding schemaBinding) 231 { 232 TypeBinding beanType = schemaBinding.getType(beanTypeQName); 234 BeanSchemaBindingHelper.initBeanHandlers(beanType); 235 } 236 237 242 public static void initBeanFactory(SchemaBinding schemaBinding) 243 { 244 TypeBinding beanFactoryType = schemaBinding.getType(beanFactoryTypeQName); 246 BeanSchemaBindingHelper.initBeanFactoryHandlers(beanFactoryType); 247 } 248 249 254 public static void initArtifacts(SchemaBinding schemaBinding) 255 { 256 TypeBinding classloaderType = schemaBinding.getType(classloaderTypeQName); 258 BeanSchemaBindingHelper.initClassLoaderHandlers(classloaderType); 259 260 TypeBinding constructorType = schemaBinding.getType(constructorTypeQName); 262 BeanSchemaBindingHelper.initConstructorHandlers(constructorType); 263 264 TypeBinding parameterType = schemaBinding.getType(parameterTypeQName); 266 BeanSchemaBindingHelper.initParameterHandlers(parameterType); 267 268 TypeBinding lifecycleType = schemaBinding.getType(lifecycleTypeQName); 270 BeanSchemaBindingHelper.initLifecycleHandlers(lifecycleType); 271 272 TypeBinding annotationType = schemaBinding.getType(annotationTypeQName); 274 BeanSchemaBindingHelper.initAnnotationHandlers(annotationType); 275 276 TypeBinding installType = schemaBinding.getType(installTypeQName); 278 BeanSchemaBindingHelper.initInstallHandlers(installType); 279 280 TypeBinding propertyType = schemaBinding.getType(propertyTypeQName); 282 BeanSchemaBindingHelper.initPropertyHandlers(propertyType); 283 284 TypeBinding dependsType = schemaBinding.getType(dependsTypeQName); 286 BeanSchemaBindingHelper.initDependsHandlers(dependsType); 287 288 TypeBinding demandType = schemaBinding.getType(demandTypeQName); 290 BeanSchemaBindingHelper.initDemandHandlers(demandType); 291 292 TypeBinding supplyType = schemaBinding.getType(supplyTypeQName); 294 BeanSchemaBindingHelper.initSupplyHandlers(supplyType); 295 296 TypeBinding dependencyType = schemaBinding.getType(dependencyTypeQName); 298 BeanSchemaBindingHelper.initDependencyHandlers(dependencyType); 299 300 TypeBinding injectionType = schemaBinding.getType(injectionTypeQName); 302 BeanSchemaBindingHelper.initInjectionHandlers(injectionType); 303 304 TypeBinding factoryType = schemaBinding.getType(factoryTypeQName); 306 BeanSchemaBindingHelper.initFactoryHandlers(factoryType); 307 308 TypeBinding plainValueType = schemaBinding.getType(plainValueTypeQName); 310 BeanSchemaBindingHelper.initPlainValueHandlers(plainValueType); 311 312 TypeBinding valueType = schemaBinding.getType(valueTypeQName); 314 BeanSchemaBindingHelper.initValueHandlers(valueType); 315 316 BeanSchemaBindingHelper.configureCollection(schemaBinding, collectionTypeQName); 318 319 BeanSchemaBindingHelper.configureCollection(schemaBinding, listTypeQName); 321 322 BeanSchemaBindingHelper.configureCollection(schemaBinding, setTypeQName); 324 325 BeanSchemaBindingHelper.configureCollection(schemaBinding, arrayTypeQName); 327 328 TypeBinding mapType = schemaBinding.getType(mapTypeQName); 330 BeanSchemaBindingHelper.initMapHandlers(mapType); 331 332 TypeBinding entryType = schemaBinding.getType(entryTypeQName); 334 BeanSchemaBindingHelper.initEntryHandlers(entryType); 335 } 336 } 337 | Popular Tags |