Class StAXParserFactory

  • All Implemented Interfaces:
    org.glassfish.hk2.api.Factory<XMLInputFactory>

    @Service
    @Singleton
    public class StAXParserFactory
    extends Object
    implements org.glassfish.hk2.api.Factory<XMLInputFactory>
    Allow people to inject XMLInputFactory via Inject.

    Component instantiation happens only when someone requests XMLInputFactory, so this is as lazy as it gets.

    TODO: if we need to let people choose StAX implementation, this is the place to do it.

    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • StAXParserFactory

        public StAXParserFactory()