org.jboss.resteasy.spi.Registry类的使用及代码示例

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

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

Registry介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public void deploy(Class resourceDef, Object resourceInstance, String contextPath) {
  if (StringUtils.isEmpty(contextPath)) {
    getDeployment().getRegistry().addResourceFactory(new DubboResourceFactory(resourceInstance, resourceDef));
  } else {
    getDeployment().getRegistry().addResourceFactory(new DubboResourceFactory(resourceInstance, resourceDef), contextPath);
  }
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public void undeploy(Class resourceDef) {
  getDeployment().getRegistry().removeRegistrations(resourceDef);
}

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

@Override
public void addSingletonResource(Object singleton, String basePath)
{
 delegate.addSingletonResource(singleton, basePath);
}

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

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

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

registry.addJndiResource(resource.trim());
   registry.addPerRequestResource(clazz);
   registry.addPerRequestResource(clazz);
   registry.addSingletonResource(obj);
  registry.addPerRequestResource(actualResourceClass);
  registry.addResourceFactory(factory);
registry.checkAmbiguousUri();

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

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

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

/**
  * Register all of the resources into RESTEasy only when Spring finishes it's
  * life-cycle and the spring singleton bean creation is completed.
  * @param event application event
  */
  @Override
  public void onApplicationEvent(ApplicationEvent event)
  {
   for (SpringResourceFactory resourceFactory : resourceFactories.values())
   {
     getRegistry().removeRegistrations(resourceFactory.getScannableClass());
   }

//  The following code would re-process the bean factory, in case the configuration changed.
//  However, it needs work.
//      if (event.getSource() instanceof XmlWebApplicationContext)
//      {
//         ConfigurableListableBeanFactory beanFactory = ((XmlWebApplicationContext) event.getSource()).getBeanFactory();
//         postProcessBeanFactory(beanFactory);
//      }
   for (SpringResourceFactory resourceFactory : resourceFactories.values())
   {
     getRegistry().addResourceFactory(resourceFactory, resourceFactory.getContext());
   }
  }

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

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

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

@Override
public void addJndiResource(String jndiName, String basePath)
{
 delegate.addJndiResource(jndiName, basePath);
}

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

@Override
public ResourceInvoker getResourceInvoker(HttpRequest request)
{
 return delegate.getResourceInvoker(request);
}

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

registry.addJndiResource(resource.trim());
   registry.addPerRequestResource(clazz);
   registry.addPerRequestResource(clazz);
   registry.addSingletonResource(obj);
  registry.addPerRequestResource(actualResourceClass);
  registry.addResourceFactory(factory);
registry.checkAmbiguousUri();

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

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

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

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

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

@Override
public void addJndiResource(String jndiName)
{
 delegate.addJndiResource(jndiName);
}

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

request.setHttpMethod("GET");
Registry methodRegistry = ResteasyContext.getContextData(Registry.class);
ResourceInvoker resourceInovker = methodRegistry.getResourceInvoker(request);
if (resourceInovker == null)

代码示例来源:origin: apache/incubator-dubbo

@Override
public void deploy(Class resourceDef, Object resourceInstance, String contextPath) {
  if (StringUtils.isEmpty(contextPath)) {
    getDeployment().getRegistry().addResourceFactory(new DubboResourceFactory(resourceInstance, resourceDef));
  } else {
    getDeployment().getRegistry().addResourceFactory(new DubboResourceFactory(resourceInstance, resourceDef), contextPath);
  }
}

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

registry.addJndiResource(resource.trim());
   registry.addPerRequestResource(clazz);
   registry.addPerRequestResource(clazz);
   registry.addSingletonResource(obj);
  registry.addPerRequestResource(actualResourceClass);
  registry.addResourceFactory(factory);
registry.checkAmbiguousUri();

代码示例来源:origin: apache/incubator-dubbo

@Override
public void undeploy(Class resourceDef) {
  getDeployment().getRegistry().removeRegistrations(resourceDef);
}

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

@Override
public void addSingletonResource(Object singleton, ResourceClass resourceClass, String basePath)
{
 delegate.addSingletonResource(singleton, resourceClass, basePath);
}

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

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

相关文章