org.jboss.resteasy.spi.Registry.addPerRequestResource()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(105)

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

Registry.addPerRequestResource介绍

[英]Add a JAX-RS endpoint. Objects of clazz will be created and destroy and the beginning/end of every request.
[中]添加一个JAX-RS端点。clazz的对象将被创建和销毁,以及每个请求的开始/结束。

代码示例

代码示例来源:origin: HotswapProjects/HotswapAgent

registry.addPerRequestResource(c);
} catch (Exception e) {
  LOGGER.error("Could not reload rest class {}", e, className);

代码示例来源:origin: resteasy/Resteasy

@Override
public void addPerRequestResource(ResourceClass clazz)
{
 delegate.addPerRequestResource(clazz);
}

代码示例来源:origin: resteasy/Resteasy

@Override
public void addPerRequestResource(ResourceClass clazz, String basePath)
{
 delegate.addPerRequestResource(clazz, basePath);
}

代码示例来源:origin: resteasy/Resteasy

@Override
public void addPerRequestResource(Class<?> clazz)
{
 delegate.addPerRequestResource(clazz);
}

代码示例来源:origin: resteasy/Resteasy

@Override
public void addPerRequestResource(Class<?> clazz, String basePath)
{
 delegate.addPerRequestResource(clazz, basePath);
}

代码示例来源:origin: resteasy/Resteasy

for (Class clazz : actualResourceClasses) dispatcher.getRegistry().addPerRequestResource(clazz);
for (Object obj : resources) dispatcher.getRegistry().addSingletonResource(obj);

代码示例来源:origin: resteasy/Resteasy

registry.addPerRequestResource(clazz);
 registry.addPerRequestResource(clazz);
registry.addPerRequestResource(actualResourceClass);

代码示例来源:origin: org.jboss.resteasy/resteasy-vertx

@Override
public void addPerRequestResource(Class<?> clazz)
{
 delegate.addPerRequestResource(clazz);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-vertx

@Override
public void addPerRequestResource(Class<?> clazz, String basePath)
{
 delegate.addPerRequestResource(clazz, basePath);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-vertx

@Override
public void addPerRequestResource(ResourceClass clazz)
{
 delegate.addPerRequestResource(clazz);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-vertx

@Override
public void addPerRequestResource(ResourceClass clazz, String basePath)
{
 delegate.addPerRequestResource(clazz, basePath);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-test-tjws

public void addPerRequestResource(Class<?> resource, Class<?> ... otherResources)
{
 startContainerIfNotRunning();
 deployment.getRegistry().addPerRequestResource(resource);
}

代码示例来源:origin: org.overlord.sramp/s-ramp-common

/**
* @param resource
*/
public static void addPerRequestResource(Class<?> resource)
{
 deployment.getRegistry().addPerRequestResource(resource);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-test-tjws

for (Class clazz : actualResourceClasses) dispatcher.getRegistry().addPerRequestResource(clazz);
for (Object obj : resources) dispatcher.getRegistry().addSingletonResource(obj);

代码示例来源:origin: org.jboss.resteasy/resteasy-core

for (Class clazz : actualResourceClasses) dispatcher.getRegistry().addPerRequestResource(clazz);
for (Object obj : resources) dispatcher.getRegistry().addSingletonResource(obj);

代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20

for (Class clazz : actualResourceClasses) dispatcher.getRegistry().addPerRequestResource(clazz);
for (Object obj : resources) dispatcher.getRegistry().addSingletonResource(obj);

代码示例来源:origin: org.overlord.sramp/s-ramp-client

/**
 * @throws Exception
 */
public static void registerServices() throws Exception {
  // use the in-memory config for unit tests
  System.setProperty("sramp.modeshape.config.url", "classpath://" + AbstractNoAuditingJCRPersistenceTest.class.getName() //$NON-NLS-1$ //$NON-NLS-2$
      + "/META-INF/modeshape-configs/junit-sramp-config.json"); //$NON-NLS-1$
  deployment.getProviderFactory().registerProvider(SrampAtomExceptionProvider.class);
  deployment.getProviderFactory().registerProvider(HttpResponseProvider.class);
  dispatcher.getRegistry().addPerRequestResource(ArtifactResource.class);
  dispatcher.getRegistry().addPerRequestResource(FeedResource.class);
  dispatcher.getRegistry().addPerRequestResource(BatchResource.class);
  dispatcher.getRegistry().addPerRequestResource(QueryResource.class);
  dispatcher.getRegistry().addPerRequestResource(OntologyResource.class);
  dispatcher.getRegistry().addPerRequestResource(AuditResource.class);
  dispatcher.getRegistry().addPerRequestResource(ServiceDocumentResource.class);
}

代码示例来源:origin: org.jboss.resteasy/resteasy-core

registry.addPerRequestResource(clazz);
 registry.addPerRequestResource(clazz);
registry.addPerRequestResource(actualResourceClass);

代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20

registry.addPerRequestResource(clazz);
 registry.addPerRequestResource(clazz);
registry.addPerRequestResource(actualResourceClass);

相关文章