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
    Modifier and Type
    Field
    Description
    static final Date
    Represents the date of initialization for this Jersey application configuration.
    protected JKLogger
    Represents the class logger.
  • Constructor Summary

    Constructors
    Constructor
    Description
    This method constructs a new JKServiceConfig and initialize it.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    This method determines the packages to scan for Jersey resources and components.
    protected void
    This method initializes the Jersey application configuration.
    protected void
    This 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOAD_TIME

      public static final Date LOAD_TIME
      Represents the date of initialization for this Jersey application configuration.
    • logger

      protected JKLogger logger
      Represents the class logger.
  • Constructor Details

    • JKServiceConfig

      public JKServiceConfig()
      This method constructs a new JKServiceConfig and 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

      protected String getPackagesToScan()
      This method determines the packages to scan for Jersey resources and components.
      Returns:
      the packages to scan for Jersey resources and components.
    • getApplicationName

      public String getApplicationName()
      Overrides:
      getApplicationName in class org.glassfish.jersey.server.ResourceConfig