Class ConcreteSubclassFactory


  • public class ConcreteSubclassFactory
    extends java.lang.Object
    Factory class to create concrete subclasses of abstract classes. This class is used in JPA-RS JAXB mappings to create InstantiationPolicy for abstract classes
    See Also:
    PreLoginMappingAdapter
    Author:
    gonural
    • Constructor Summary

      Constructors 
      Constructor Description
      ConcreteSubclassFactory​(java.lang.Class clazz)
      Instantiates a new concrete subclass factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object createConcreteSubclass()
      Creates a new ConcreteSubclass object.
      • Methods inherited from class java.lang.Object

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

      • ConcreteSubclassFactory

        public ConcreteSubclassFactory​(java.lang.Class clazz)
        Instantiates a new concrete subclass factory.
        Parameters:
        clazz - the clazz
    • Method Detail

      • createConcreteSubclass

        public java.lang.Object createConcreteSubclass()
                                                throws java.lang.InstantiationException,
                                                       java.lang.IllegalAccessException
        Creates a new ConcreteSubclass object.
        Returns:
        the object
        Throws:
        java.lang.InstantiationException - the instantiation exception
        java.lang.IllegalAccessException - the illegal access exception