jadex.bridge.service.search.SServiceProvider.getService()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中jadex.bridge.service.search.SServiceProvider.getService()方法的一些代码示例,展示了SServiceProvider.getService()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SServiceProvider.getService()方法的具体详情如下:
包路径:jadex.bridge.service.search.SServiceProvider
类名称:SServiceProvider
方法名:getService

SServiceProvider.getService介绍

[英]Get one service of a type.
[中]得到一种类型的服务。

代码示例

代码示例来源:origin: net.sourceforge.jadex/jadex-bridge

/**
 *  Get all declared services of the given provider.
 *  @return The corresponding services.
 */
public static <T> IFuture<T> getDeclaredService(IServiceProvider provider, Class<T> type)
{
  return SServiceProvider.getService(provider, type, RequiredServiceInfo.SCOPE_LOCAL);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get one service of a type.
//     *  (Returns required service proxy).
   *  @param type The class.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(IInternalAccess component, Class<T> type, String scope, boolean proxy)
  {
    return getService(component, type, scope, (IAsyncFilter<T>)null, proxy);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
     *  Get one service of a type.
//         *  (Returns required service proxy).
     *  @param type The class.
     *  @return The corresponding service.
     */
  public static <T> IFuture<T> getService(IInternalAccess component, ClassInfo type)
  {
    return getService(component, type, null, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get all declared services of the given provider.
 *  @return The corresponding services.
 */
public static <T> IFuture<T> getDeclaredService(IInternalAccess component, ClassInfo type)
{
  return getService(component, type, RequiredServiceInfo.SCOPE_LOCAL, true);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get a service from a specific component.
 *  @param component The component.
 *  @param cid The target component identifier.
 *  @param type The service type.
 *  @return The corresponding service.
 */
public static <T> IFuture<T> getService(final IInternalAccess component, final IComponentIdentifier cid, final ClassInfo type, final boolean proxy)
{
  return getService(component, cid, RequiredServiceInfo.SCOPE_LOCAL, type, proxy);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get one service of a type.
//     *  (Returns required service proxy).
   *  @param type The class.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(IInternalAccess component, Class<T> type, boolean proxy)
  {
    return getService(component, type, null, proxy);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get a service from a specific component.
//     *  (Returns required service proxy).
   *  @param component The component.
   *  @param cid The target component identifier.
   *  @param type The service type.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(final IInternalAccess component, final IComponentIdentifier cid, final Class<T> type, final boolean proxy)
  {
    return getService(component, cid, RequiredServiceInfo.SCOPE_LOCAL, type, proxy);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
     *  Get one service of a type.
//         *  (Returns required service proxy).
     *  @param type The class.
     *  @return The corresponding service.
     */
  public static <T> IFuture<T> getService(IInternalAccess component, ClassInfo type, String scope)
  {
    return getService(component, type, scope, (IAsyncFilter<T>)null, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get one service of a type.
 *  @param type The class.
 *  @return The corresponding service.
 */
public static <T> IFuture<T> getService(IExternalAccess provider, ClassInfo type, String scope)
{
  return getService(provider, type, scope, (IAsyncFilter<T>)null);
}

代码示例来源:origin: net.sourceforge.jadex/jadex-bridge

/**
 *  Get one service of a type and only search upwards (parents).
 *  @param type The class.
 *  @return The corresponding service.
 */
public static <T> IFuture<T> getServiceUpwards(IServiceProvider provider, Class<T> type)
{
  return getService(provider, type, RequiredServiceInfo.SCOPE_UPWARDS);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get one service of a type.
//     *  (Returns required service proxy).
   *  @param type The class.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(IInternalAccess component, Class<T> type)
  {
    return getService(component, type, null, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get one service of a type.
//     *  (Returns required service proxy).
   *  @param type The class.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(final IInternalAccess component, final Class<T> type, final String scope, final IAsyncFilter<T> filter)
  {
    return getService(component, type, scope, filter, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
   *  Get one service with id.
//     *  (Returns required service proxy).
   *  @param clazz The class.
   *  @return The corresponding service.
   */
  public static <T> IFuture<T> getService(final IInternalAccess component, final IServiceIdentifier sid)
  {
    return getService(component, sid, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get all declared services of the given provider.
 *  @return The corresponding services.
 */
public static <T> IFuture<T> getDeclaredService(IExternalAccess provider, Class<T> type)
{
  return getService(provider, type, RequiredServiceInfo.SCOPE_LOCAL);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
     *  Get one service of a type.
//         *  (Returns required service proxy).
     *  @param type The class.
     *  @return The corresponding service.
     */
  public static <T> IFuture<T> getService(final IInternalAccess component, final ClassInfo type, final String scope, final IAsyncFilter<T> filter)
  {
    return getService(component, type, scope, filter, true);
  }

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Get one service of a type.
 *  @param type The class.
 *  @return The corresponding service.
 */
public static <T> IFuture<T> getService(IInternalAccess component, ClassInfo type, boolean proxy)
{
  return getService(component, type, null, proxy);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

@Classname("getService(IExternalAccess provider, final IComponentIdentifier cid, final Class<T> type)")
  public IFuture<T> execute(IInternalAccess ia)
  {
    return getService(ia, cid, type, false);
  }
});

代码示例来源:origin: net.sourceforge.jadex/jadex-tools-base-swing

/**
 *  Get the local CMS.
 *  @return The local CMS.
 */
public IFuture<IComponentManagementService>	getLocalCMS()
{
  IFuture<IComponentManagementService>    ret    = SServiceProvider.getService(access.getServiceProvider(), IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM);
  return ret;
}

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

@Classname("getService(IExternalAccess provider, final IServiceIdentifier sid)")
  public IFuture<T> execute(IInternalAccess ia)
  {
    return getService(ia, sid, false);
  }
});

代码示例来源:origin: org.activecomponents.jadex/jadex-bridge

/**
 *  Find service by type and tags. Service must have all the tags.
 *  @param component The component.
 *  @param type The service type.
 *  @param scope The search scope.
 *  @param tags The tags.
 *  @return A matching service
 */
public static <T> IFuture<T> getTaggedService(final IInternalAccess component, Class<T> type, String scope, final String... tags)
{
  return getService(component, type, scope, new TagFilter<T>(component.getExternalAccess(), tags));
}

相关文章