Class CommonConfig.FeatureRegistration

  • Enclosing class:
    CommonConfig

    private static final class CommonConfig.FeatureRegistration
    extends java.lang.Object
    A single feature registration record.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.ws.rs.core.Feature feature  
      private java.lang.Class<? extends javax.ws.rs.core.Feature> featureClass  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FeatureRegistration​(java.lang.Class<? extends javax.ws.rs.core.Feature> featureClass)  
      private FeatureRegistration​(javax.ws.rs.core.Feature feature)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      javax.ws.rs.core.Feature getFeature()
      Get the registered feature instance or null if this is a class based feature registration.
      (package private) java.lang.Class<? extends javax.ws.rs.core.Feature> getFeatureClass()
      Get the registered feature class.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • featureClass

        private final java.lang.Class<? extends javax.ws.rs.core.Feature> featureClass
      • feature

        private final javax.ws.rs.core.Feature feature
    • Constructor Detail

      • FeatureRegistration

        private FeatureRegistration​(java.lang.Class<? extends javax.ws.rs.core.Feature> featureClass)
      • FeatureRegistration

        private FeatureRegistration​(javax.ws.rs.core.Feature feature)
    • Method Detail

      • getFeatureClass

        java.lang.Class<? extends javax.ws.rs.core.Feature> getFeatureClass()
        Get the registered feature class.
        Returns:
        registered feature class.
      • getFeature

        public javax.ws.rs.core.Feature getFeature()
        Get the registered feature instance or null if this is a class based feature registration.
        Returns:
        the registered feature instance or null if this is a class based feature registration.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object