Package org.apache.jackrabbit.ocm.mapper.model

Examples of org.apache.jackrabbit.ocm.mapper.model.ImplementDescriptor


        return fd;
    }

    private ImplementDescriptor parseImplementDescriptor() throws XmlPullParserException {
        ImplementDescriptor fd = new ImplementDescriptor();

        /*
         * interfaceName CDATA #REQUIRED
         */

        fd.setInterfaceName(this.getRequiredAttribute("interfaceName"));

        return fd;
    }
View Full Code Here


        return fd;
    }

    private ImplementDescriptor parseImplementDescriptor() throws XmlPullParserException {
        ImplementDescriptor fd = new ImplementDescriptor();

        /*
         * interfaceName CDATA #REQUIRED
         */

        fd.setInterfaceName(this.getRequiredAttribute("interfaceName"));

        return fd;
    }
View Full Code Here

  private void addImplementDescriptor(ClassDescriptor classDescriptor, Class clazz)
  {
    Implement implementAnnotation = (Implement) clazz.getAnnotation(Implement.class);
    if (implementAnnotation != null)
    {
            ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(implementAnnotation.interfaceName().getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }
   
  }
View Full Code Here

  private void addImplementDescriptor(ClassDescriptor classDescriptor, Class clazz)
  {
    Class[] interfaces = ReflectionUtils.getInterfaces(clazz);
    for (int i = 0; i < interfaces.length; i++) {
      ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(interfaces[i].getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }
   
    // TODO : Can we still support the annotation @Implement if we are using
    //        the reflection to get the list of the interfaces ?   
    Implement implementAnnotation = (Implement) clazz.getAnnotation(Implement.class);
    if (implementAnnotation != null)
    {
            ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(implementAnnotation.interfaceName().getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }

  }
View Full Code Here

  private void addImplementDescriptor(ClassDescriptor classDescriptor, Class clazz)
  {
    Class[] interfaces = ReflectionUtils.getInterfaces(clazz);
    for (int i = 0; i < interfaces.length; i++) {
      ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(interfaces[i].getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }
   
    // TODO : Can we still support the annotation @Implement if we are using
    //        the reflection to get the list of the interfaces ?   
    Implement implementAnnotation = (Implement) clazz.getAnnotation(Implement.class);
    if (implementAnnotation != null)
    {
            ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(implementAnnotation.interfaceName().getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }

  }
View Full Code Here

  private void addImplementDescriptor(ClassDescriptor classDescriptor, Class clazz)
  {
    Class[] interfaces = ReflectionUtils.getInterfaces(clazz);
    for (int i = 0; i < interfaces.length; i++) {
      ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(interfaces[i].getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }
   
    // TODO : Can we still support the annotation @Implement if we are using
    //        the reflection to get the list of the interfaces ?   
    Implement implementAnnotation = (Implement) clazz.getAnnotation(Implement.class);
    if (implementAnnotation != null)
    {
            ImplementDescriptor implementDescriptor =  new ImplementDescriptor();
            implementDescriptor.setInterfaceName(implementAnnotation.interfaceName().getName());
            classDescriptor.addImplementDescriptor(implementDescriptor);
    }

  }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.mapper.model.ImplementDescriptor

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.