com.sun.enterprise.v3.server
Class StAXParserFactory
java.lang.Object
com.sun.enterprise.v3.server.StAXParserFactory
- All Implemented Interfaces:
- org.glassfish.hk2.Factory
@Service
@FactoryFor(value=javax.xml.stream.XMLInputFactory.class)
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class StAXParserFactory
- extends Object
- implements org.jvnet.hk2.component.Factory
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXParserFactory
public StAXParserFactory()
get
public XMLInputFactory get()
throws org.jvnet.hk2.component.ComponentException
- Specified by:
get in interface org.glassfish.hk2.Factory
- Throws:
org.jvnet.hk2.component.ComponentException
Copyright © 2012. All Rights Reserved.