IT. Expert System.

Java Enterprise Edition (EE)

Application


javax.ws.rs.core
Class Application

java.lang.Object
  javax.ws.rs.core.Application
public class Application
extends java.lang.Object

Defines the components of a JAX-RS application and supplies additional metadata. A JAX-RS application or implementation supplies a concrete subclass of this abstract class.

The implementation-created instance of an Application subclass may be injected into resource classes and providers using Context.

Constructor Summary
Application()
           
 
Method Summary
 java.util.Set<java.lang.Class<?>> getClasses()
          Get a set of root resource and provider classes.
 java.util.Set<java.lang.Object> getSingletons()
          Get a set of root resource and provider instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

getClasses

public java.util.Set<java.lang.Class<?>> getClasses()
Get a set of root resource and provider classes. The default lifecycle for resource class instances is per-request. The default lifecycle for providers is singleton.

Implementations should warn about and ignore classes that do not conform to the requirements of root resource or provider classes. Implementations should warn about and ignore classes for which getSingletons() returns an instance. Implementations MUST NOT modify the returned set.

The default implementation returns an empty set.

Returns:
a set of root resource and provider classes. Returning null is equivalent to returning an empty set.

getSingletons

public java.util.Set<java.lang.Object> getSingletons()
Get a set of root resource and provider instances. Fields and properties of returned instances are injected with their declared dependencies (see Context) by the runtime prior to use.

Implementations should warn about and ignore classes that do not conform to the requirements of root resource or provider classes. Implementations should flag an error if the returned set includes more than one instance of the same class. Implementations MUST NOT modify the returned set.

The default implementation returns an empty set.

Returns:
a set of root resource and provider instances. Returning null is equivalent to returning an empty set.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 565 / . Delta: 0.02100 с