Class JPARSApplication


  • @ApplicationPath("/persistence/")
    public class JPARSApplication
    extends javax.ws.rs.core.Application
    Config class for JPA-RS REST service. This class should remain dependent only on classes from the specification since it is designed to work with both Jersey 1.x and Jersey 2.x.
    Author:
    tware
    • Constructor Summary

      Constructors 
      Constructor Description
      JPARSApplication()
      Instantiates a new jPARS application.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.Class<?>> getClasses()  
      void preDestroy()
      Clean up.
      • Methods inherited from class javax.ws.rs.core.Application

        getProperties, getSingletons
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JPARSApplication

        public JPARSApplication()
        Instantiates a new jPARS application.
    • Method Detail

      • getClasses

        public java.util.Set<java.lang.Class<?>> getClasses()
        Overrides:
        getClasses in class javax.ws.rs.core.Application
      • preDestroy

        @PreDestroy
        public void preDestroy()
        Clean up.