Package org.platformlayer.xaas

Examples of org.platformlayer.xaas.Controller


    String packagePrefix = myPackage.getName() + ".";
    if (!clazzPackage.getName().startsWith(packagePrefix)) {
      return null;
    }

    Controller modelAnnotation = clazz.getAnnotation(Controller.class);
    if (modelAnnotation == null) {
      return null;
    }

    return ModelClass.publicModel(this, clazz);
View Full Code Here


    return controller;
  }

  @Override
  public Class<?> getControllerClass(Class<?> managedItemClass) throws OpsException {
    Controller controller = managedItemClass.getAnnotation(Controller.class);
    if (controller == null) {
      throw new IllegalArgumentException("No @Controller annotation found for " + managedItemClass.getName());
    }

    ensureInitialized();

    return controller.value();
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.xaas.Controller

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.