Package com.sun.enterprise.v3.server
Class StAXParserFactory
- java.lang.Object
-
- com.sun.enterprise.v3.server.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 injectXMLInputFactory
viaInject
.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 Summary
Constructors Constructor Description StAXParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose(XMLInputFactory instance)
XMLInputFactory
provide()
-
-
-
Method Detail
-
provide
@PerLookup public XMLInputFactory provide()
- Specified by:
provide
in interfaceorg.glassfish.hk2.api.Factory<XMLInputFactory>
-
dispose
public void dispose(XMLInputFactory instance)
- Specified by:
dispose
in interfaceorg.glassfish.hk2.api.Factory<XMLInputFactory>
-
-