Package com.firefly.annotation

Examples of com.firefly.annotation.Component


  protected BeanDefinition componentParser(Class<?> c) {
    AnnotationBeanDefinition annotationBeanDefinition = new AnnotatedBeanDefinition();
    annotationBeanDefinition.setClassName(c.getName());

    Component component = c.getAnnotation(Component.class);
    String id = component.value();
    annotationBeanDefinition.setId(id);

    String[] names = ReflectUtils.getInterfaceNames(c);
    annotationBeanDefinition.setInterfaceNames(names);
View Full Code Here


    // 把annotation的值作为key
    Controller controller = c.getAnnotation(Controller.class);
    if (controller != null && controller.value().length() > 0)
      ret.add(controller.value());
    Component component = c.getAnnotation(Component.class);
    if (component != null && component.value().length() > 0)
      ret.add(component.value());
    Interceptor interceptor = c.getAnnotation(Interceptor.class);
    if (interceptor != null && interceptor.value().length() > 0)
      ret.add(interceptor.value());
    return ret;
  }
View Full Code Here

  protected BeanDefinition componentParser(Class<?> c) {
    AnnotationBeanDefinition annotationBeanDefinition = new AnnotatedBeanDefinition();
    annotationBeanDefinition.setClassName(c.getName());

    Component component = c.getAnnotation(Component.class);
    String id = component.value();
    annotationBeanDefinition.setId(id);

    String[] names = ReflectUtils.getInterfaceNames(c);
    annotationBeanDefinition.setInterfaceNames(names);
View Full Code Here

  protected BeanDefinition componentParser(Class<?> c) {
    AnnotationBeanDefinition annotationBeanDefinition = new AnnotatedBeanDefinition();
    annotationBeanDefinition.setClassName(c.getName());

    Component component = c.getAnnotation(Component.class);
    String id = component.value();
    annotationBeanDefinition.setId(id);

    String[] names = ReflectUtils.getInterfaceNames(c);
    annotationBeanDefinition.setInterfaceNames(names);
View Full Code Here

TOP

Related Classes of com.firefly.annotation.Component

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.