Top Fields Constructors Methods
org.jabref.http.server

public Class Application

extends Application
Class Inheritance
Annotations
@ApplicationPath:/
Imports
java.util.Set, org.jabref.http.dto.GsonFactory, org.jabref.preferences.PreferenceServiceFactory, jakarta.inject.Inject, jakarta.ws.rs.ApplicationPath, org.glassfish.hk2.api.ServiceLocator, org.glassfish.hk2.utilities.ServiceLocatorUtilities

Field Summary

Modifier and TypeField and Description
pack-priv org.glassfish.hk2.api.ServiceLocator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<Class<?>>
getClasses()

Overrides jakarta.ws.rs.core.Application.getClasses.

Get a set of root resource, provider and feature classes.

private void
initialize()

Separate initialization method, because @Inject does not support injection at the constructor

Inherited from jakarta.ws.rs.core.Application:
getPropertiesgetSingletons

Field Detail

serviceLocatorback to summary
pack-priv org.glassfish.hk2.api.ServiceLocator serviceLocator
Annotations
@Inject

Constructor Detail

Applicationback to summary
public Application()

Method Detail

getClassesback to summary
public Set<Class<?>> getClasses()

Overrides jakarta.ws.rs.core.Application.getClasses.

Doc from jakarta.ws.rs.core.Application.getClasses.

Get a set of root resource, provider and feature classes. The default life-cycle for resource class instances is per-request. The default life-cycle for providers (registered directly or via a feature) is singleton.

Implementations should warn about and ignore classes that do not conform to the requirements of root resource or provider/feature 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:Set<Class<?>>

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

Annotations
@Override
initializeback to summary
private void initialize()

Separate initialization method, because @Inject does not support injection at the constructor