Class AbstractBeanDescriptorProvider.ContextualFactoryDecorator

    • Constructor Detail

      • ContextualFactoryDecorator

        public ContextualFactoryDecorator​(Factory<Converter<?>> delegatedFactory)
    • Method Detail

      • create

        public Converter<?> create​(Type type,
                                   Genson genson)
        Description copied from interface: Factory
        Implementations of this method must try to create an instance of type T based on the parameter "type". If this factory can not create an object of type T for parameter type then it must return null.
        Specified by:
        create in interface Factory<Converter<?>>
        Parameters:
        type - used to build an instance of T.
        Returns:
        null if it doesn't support this type or an instance of T (or a subclass).