1 22 package org.jboss.kernel.plugins.deployment.xml; 23 24 import javax.xml.namespace.QName ; 25 26 import org.jboss.beans.metadata.plugins.AbstractValueMetaData; 27 import org.jboss.beans.metadata.spi.ValueMetaData; 28 import org.jboss.xb.binding.sunday.unmarshalling.DefaultWildcardHandler; 29 import org.jboss.xb.binding.sunday.unmarshalling.ElementBinding; 30 31 37 public class FactoryWildcardHandler extends DefaultWildcardHandler 38 { 39 40 public static final FactoryWildcardHandler WILDCARD = new FactoryWildcardHandler(); 41 42 public void setParent(Object parent, Object o, QName elementName, ElementBinding element, ElementBinding parentElement) 43 { 44 Holder holder = (Holder) parent; 45 if (o instanceof ValueMetaData == false) 46 o = new AbstractValueMetaData(o); 47 holder.setValue(o); 48 } 49 } | Popular Tags |