오늘 삽질하다가... 발견한 Sun의 Java6의 javax.xml.stream.?XMLOutputFactory 소스의 일부... -.-;;;;;
- public abstract class XMLOutputFactory {
- ...
- /**
- * Create a new instance of the factory using the default factory location
- * mechanism (check env. variable, jaxp.properties, jar services manifest,
- * in this order)
- *
- * @throws FactoryConfigurationError if an instance of this factory cannot be loaded
- */
- public static XMLOutputFactory newInstance() throws FactoryConfigurationError {
- return (XMLOutputFactory) FactoryFinder.find("javax.xml.stream.XMLOutputFactory",
- "com.sun.xml.internal.stream.XMLOutputFactoryImpl");
- }
- /**
- * Create a new instance of the factory
- *
- * @param factoryId Name of the factory to find; not the class name but the
- * property name to use
- * @param classLoader classLoader to use
- * @return the factory implementation
- * @throws FactoryConfigurationError if an instance of this factory cannot be loaded
- */
- throws FactoryConfigurationError {
- return (XMLInputFactory) FactoryFinder.find(factoryId, "com.sun.xml.stream.XMLOutputFactoryImpl", classLoader);
- }
- ...
뭐가 이상하냐고?
첫번째 함수와 두번째 함수의 리턴타입...
'hacking > java' 카테고리의 다른 글
| Maven2와 Eclipse/WTP 함께쓰기 (0) | 2007/09/11 |
|---|---|
| singleton과 lazy loading... (0) | 2007/01/28 |
| Java6 XMLOutputFactory 유감 (2) | 2007/01/15 |
| XML Exodus... (3) | 2007/01/07 |
| 아니~ 버~ㄹ써! Java6~ (0) | 2006/12/12 |
| Java, finally GPLed (0) | 2006/11/14 |
![[http]](http://hellocity.net/%7Eiolo/moniwiki/imgs/http.png)