本文整理了Java中org.jboss.resteasy.spi.Registry
类的一些代码示例,展示了Registry
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry
类的具体详情如下:
包路径:org.jboss.resteasy.spi.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);
内容来源于网络,如有侵权,请联系作者删除!