Examples of ApiClass


Examples of com.caucho.config.gen.ApiClass

  /**
   * Adds a local interface class
   */
  public void addBusinessLocal(Class localClass)
  {
    ApiClass local = new ApiClass(localClass);
   
    if (! local.isPublic())
      throw error(L.l("'{0}' must be public.  <local> interfaces must be public.", local.getName()));

    if (! local.isInterface())
      throw error(L.l("'{0}' must be an interface. <local> interfaces must be interfaces.", local.getName()));

    if (! _localList.contains(local)) {
      _localList.add(local);
    }
  }
View Full Code Here

Examples of com.caucho.config.gen.ApiClass

   * Validates the remote interface.
   */
  protected void validateRemote(ApiClass objectClass)
    throws ConfigException
  {
    ApiClass beanClass = getEJBClassWrapper();
    String beanName = beanClass.getName();

    String objectName = objectClass.getName();

    if (! objectClass.isPublic())
      throw error(L.l("'{0}' must be public", objectName));
View Full Code Here

Examples of com.wordnik.swagger.annotations.ApiClass

        Element elem = doc.createElement("data");
        xmlRoot.appendChild(elem);
        elem.setAttribute("name", classElementIn.getSimpleName().toString());
        elem.setAttribute("nameId","..." + classElementIn.getSimpleName().toString());
        ApiClass api = classElementIn.getAnnotation(ApiClass.class);
        if (api!=null) {
            elem.setAttribute("abstract",api.value());
            if (api.description()!=null && !api.description().isEmpty()) {
                elem.setAttribute("description",api.description());
            }
        }
        // Determine the name of how the elements of this class are named in the XML / JSON output
        XmlRootElement rootElement = classElementIn.getAnnotation(XmlRootElement.class);
        String objectName;
View Full Code Here

Examples of myorg.osgimodule.api.ApiClass

import myorg.osgimodule.internal.InternalClass;

public class Test {

  public static void main(String[] args) {
    System.out.print(new ApiClass().echo()); // this should compile
    System.out.print(new InternalClass().echo()); // this should not compile!
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.