Package org.openhab.core.scriptengine.action

Examples of org.openhab.core.scriptengine.action.ActionService


   
    // add all actions that are contributed as OSGi services
    Object[] services = ScriptActivator.actionServiceTracker.getServices();
    if(services!=null) {
      for(Object service : services) {
        ActionService actionService = (ActionService) service;
        literalClassNames.add(actionService.getActionClassName());
      }
    }
   
    literalClassNames.add(CollectionLiterals.class.getName());
    literalClassNames.add(InputOutput.class.getName());
View Full Code Here


      return clazz;
    } catch(ClassNotFoundException e) {
      Object[] services = ScriptActivator.actionServiceTracker.getServices();
      if(services!=null) {
        for(Object service : services) {
          ActionService actionService = (ActionService) service;
          if(actionService.getActionClassName().equals(name)) {
            return actionService.getActionClass();
          }
        }
      }
    }
    throw new ClassNotFoundException();
View Full Code Here

    if(call.getFeature().eContainer() instanceof JvmGenericType) {
      JvmGenericType type = (JvmGenericType) call.getFeature().eContainer();
      Object[] services = ScriptUIActivator.actionServiceTracker.getServices();
      if(services!=null) {
        for(Object service : services) {
          ActionService actionService = (ActionService) service;
          if(actionService.getActionClassName().equals(type.getIdentifier())) {
            for(Method m : actionService.getActionClass().getMethods()) {
              if(m.toString().contains((call.getFeature().getIdentifier()))) {
                return m;
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.openhab.core.scriptengine.action.ActionService

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.