This is an automated email from the ASF dual-hosted git repository. gk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/turbine-fulcrum-factory.git
commit d656a1d3a6793d5198a8111d107e24d54e6846b2 Author: Thomas Vandahl <[email protected]> AuthorDate: Sun Nov 27 13:31:01 2016 +0000 Update docs git-svn-id: https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/factory@1771588 13f79535-47bb-0310-9956-ffa450edef68 --- xdocs/index.xml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/xdocs/index.xml b/xdocs/index.xml index b17ff14..c3a4cf8 100644 --- a/xdocs/index.xml +++ b/xdocs/index.xml @@ -120,13 +120,13 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; -import org.apache.fulcrum.ServiceException; +import org.apache.fulcrum.factroy.FactoryException; import org.apache.fulcrum.factory.Factory; /** * A factory for instantiating DOM parsers. */ -public class DomBuilderFactory implements Factory +public class DomBuilderFactory implements Factory<DocumentBuilder> { /** * The implementation of the factory. @@ -137,7 +137,7 @@ public class DomBuilderFactory implements Factory * Initializes the factory. */ public void init(String className) - throws ServiceException + throws FactoryException { factory = DocumentBuilderFactory.newInstance(); } @@ -145,8 +145,8 @@ public class DomBuilderFactory implements Factory /** * Gets a DocumentBuilder instance. */ - public Object getInstance() - throws ServiceException + public DocumentBuilder getInstance() + throws FactoryException { try { @@ -154,7 +154,7 @@ public class DomBuilderFactory implements Factory } catch (ParserConfigurationException x) { - throw new TurbineException(x); + throw new FactoryException(x); } } @@ -162,8 +162,8 @@ public class DomBuilderFactory implements Factory * Gets a DocumentBuilder instance. * The given loader is ignored. */ - public Object getInstance(ClassLoader loader) - throws ServiceException + public DocumentBuilder getInstance(ClassLoader loader) + throws FactoryException { return getInstance(); } @@ -172,9 +172,8 @@ public class DomBuilderFactory implements Factory * Gets a DocumentBuilder instance. * Constructor parameters are ignored. */ - public Object getInstance(Object[] params, - String[] signature) - throws ServiceException + public DocumentBuilder getInstance(Object[] params, String[] signature) + throws FactoryException { return getInstance(); } @@ -183,10 +182,10 @@ public class DomBuilderFactory implements Factory * Gets a DocumentBuilder instance. * The given loader and constructor parameters are ignored. */ - public Object getInstance(ClassLoader loader, - Object[] params, - String[] signature) - throws ServiceException + public DocumentBuilder getInstance(ClassLoader loader, + Object[] params, + String[] signature) + throws FactoryException { return getInstance(); }
