Package com.jk.services.server
Class JKServiceConfig
java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
com.jk.services.server.JKServiceConfig
- All Implemented Interfaces:
 jakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>,jakarta.ws.rs.core.Configuration,org.glassfish.jersey.ExtendedConfig,org.glassfish.jersey.server.ServerConfig
- Direct Known Subclasses:
 JKCrossCuttingApp,JKServiceApp
@ApplicationPath("util")
public class JKServiceConfig
extends org.glassfish.jersey.server.ResourceConfig
This class extends 
ResourceConfig, which provides configuration
 options for a Jersey application.- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKServiceConfigand initialize it. - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringThis method determines the packages to scan for Jersey resources and components.protected voidinit()This method initializes the Jersey application configuration.protected voidThis method registers various components used in the Jersey application.Methods inherited from class org.glassfish.jersey.server.ResourceConfig
addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationPath, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, hasProperty, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties 
- 
Field Details
- 
LOAD_TIME
Represents the date of initialization for this Jersey application configuration. - 
logger
Represents the class logger. 
 - 
 - 
Constructor Details
- 
JKServiceConfig
public JKServiceConfig()This method constructs a newJKServiceConfigand initialize it. 
 - 
 - 
Method Details
- 
init
protected void init()This method initializes the Jersey application configuration. - 
registerComponents
protected void registerComponents()This method registers various components used in the Jersey application. - 
getPackagesToScan
This method determines the packages to scan for Jersey resources and components.- Returns:
 - the packages to scan for Jersey resources and components.
 
 - 
getApplicationName
- Overrides:
 getApplicationNamein classorg.glassfish.jersey.server.ResourceConfig
 
 -