com.sun.jersey.spi.container.WebApplication.getFeaturesAndProperties()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(111)

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

WebApplication.getFeaturesAndProperties介绍

[英]Get the features and properties.
[中]获取特性和属性。

代码示例

代码示例来源:origin: com.sun.jersey/jersey-server

public void onReload() {
    WebApplication oldApplication = application;
    application = application.clone();

    if (application.getFeaturesAndProperties() instanceof ReloadListener)
      ((ReloadListener) application.getFeaturesAndProperties()).onReload();

    oldApplication.destroy();
  }
}

代码示例来源:origin: com.sun.jersey/jersey-server

@Override
public void trace(String message) {
  if (!isTracingEnabled())
    return;
  if (wa.getFeaturesAndProperties().getFeature(ResourceConfig.FEATURE_TRACE_PER_REQUEST) &&
      !getRequestHeaders().containsKey("X-Jersey-Trace-Accept"))
    return;
  TraceInformation ti = (TraceInformation) getProperties().
      get(TraceInformation.class.getName());
  ti.trace(message);
}

代码示例来源:origin: org.atmosphere/atmosphere-guice

@Provides
public FeaturesAndProperties fearturesAndProperties(WebApplication webApplication) {
  return webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: org.sonatype.sisu.siesta/siesta-server

/**
 * @since 1.4
 */
@Provides
public FeaturesAndProperties featuresAndProperties(WebApplication webApplication) {
 return webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: Atmosphere/atmosphere-extensions

@Provides
public FeaturesAndProperties fearturesAndProperties(WebApplication webApplication) {
  return webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: com.sun.jersey.contribs/jersey-guice

@Provides
public FeaturesAndProperties featuresAndProperties(WebApplication webApplication) {
  return webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: com.cedarsoft.rest/jersey

@Provides
public FeaturesAndProperties featuresAndProperties( @NotNull WebApplication webApplication ) {
 return webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: com.cedarsoft.rest/jersey

@Provides
public ResourceConfig resourceConfig( @NotNull WebApplication webApplication ) {
 return ( ResourceConfig ) webApplication.getFeaturesAndProperties();
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

public void onReload() {
    WebApplication oldApplication = application;
    application = application.clone();

    if (application.getFeaturesAndProperties() instanceof ReloadListener)
      ((ReloadListener) application.getFeaturesAndProperties()).onReload();

    oldApplication.destroy();
  }
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

@Override
  public void onReload() {
    WebApplication oldApplication = application;
    application = application.clone();

    if (application.getFeaturesAndProperties() instanceof ReloadListener)
      ((ReloadListener) application.getFeaturesAndProperties()).onReload();

    oldApplication.destroy();
  }    
}

代码示例来源:origin: jersey/jersey-1.x

public void onReload() {
    WebApplication oldApplication = application;
    application = application.clone();

    if (application.getFeaturesAndProperties() instanceof ReloadListener)
      ((ReloadListener) application.getFeaturesAndProperties()).onReload();

    oldApplication.destroy();
  }
}

代码示例来源:origin: com.sun.jersey/jersey-grizzly2

@Override
public void onReload() {
  final WebApplication oldApplication = application;
  application = application.clone();
  if (application.getFeaturesAndProperties() instanceof ReloadListener) {
    ((ReloadListener) application.getFeaturesAndProperties()).onReload();
  }
  oldApplication.destroy();
}

代码示例来源:origin: jersey/jersey-1.x

@Override
public void onReload() {
  final WebApplication oldApplication = application;
  application = application.clone();
  if (application.getFeaturesAndProperties() instanceof ReloadListener) {
    ((ReloadListener) application.getFeaturesAndProperties()).onReload();
  }
  oldApplication.destroy();
}

代码示例来源:origin: jersey/jersey-1.x

@Override
public void trace(String message) {
  if (!isTracingEnabled())
    return;
  if (wa.getFeaturesAndProperties().getFeature(ResourceConfig.FEATURE_TRACE_PER_REQUEST) &&
      !getRequestHeaders().containsKey("X-Jersey-Trace-Accept"))
    return;
  TraceInformation ti = (TraceInformation) getProperties().
      get(TraceInformation.class.getName());
  ti.trace(message);
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

@Override
public void trace(String message) {
  if (!isTracingEnabled())
    return;
  if (wa.getFeaturesAndProperties().getFeature(ResourceConfig.FEATURE_TRACE_PER_REQUEST) &&
      !getRequestHeaders().containsKey("X-Jersey-Trace-Accept"))
    return;
  TraceInformation ti = (TraceInformation) getProperties().
      get(TraceInformation.class.getName());
  ti.trace(message);
}

相关文章