Package com.caucho.config.types

Examples of com.caucho.config.types.AnnotationConfig


      throw new ConfigException(L.l("'{0}.{1}' is an unknown class for element '{2}'",
                                    pkg, localName, qName));
    }

    if (Annotation.class.isAssignableFrom(cl)) {
      return new AnnotationConfig(cl);
    }
    else {
      XmlBeanConfig config = new XmlBeanConfig(qName, cl, parent);

      // config.setScope("singleton");
View Full Code Here


    if (value instanceof Annotation) {
      customBean.addAnnotation((Annotation) value);
    }
    else {
      AnnotationConfig annConfig = (AnnotationConfig) value;
      customBean.addAnnotation(annConfig.replace());
    }
  }
View Full Code Here

  @Override
  public void setText(Object bean, QName name, String value)
    throws ConfigException
  {
    try {
      AnnotationConfig ann = (AnnotationConfig) bean;

      ann.setAttribute(name.getLocalName(), _type.valueOf(value));
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
  }
View Full Code Here

  @Override
  public void setValue(Object bean, QName name, Object value)
    throws ConfigException
  {
    try {
      AnnotationConfig ann = (AnnotationConfig) bean;

      ann.setAttribute(name.getLocalName(), value);
      //_putMethod.invoke(bean, name.getLocalName(), value);
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.types.AnnotationConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.