aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps/FopFactoryBuilder.java
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-07-06 13:22:23 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-07-06 13:22:23 +0000
commit41299785b626524554e97636c2dab599f179a060 (patch)
treea31cd30955e540d892cb56b7de75e1f889c0f716 /src/java/org/apache/fop/apps/FopFactoryBuilder.java
parentd54c3555e03f41f6e8559a4c842e7a106347751a (diff)
downloadxmlgraphics-fop-41299785b626524554e97636c2dab599f179a060.tar.gz
xmlgraphics-fop-41299785b626524554e97636c2dab599f179a060.zip
Fixed deprecation warning and added some comments to explain the API design
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1358188 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps/FopFactoryBuilder.java')
-rw-r--r--src/java/org/apache/fop/apps/FopFactoryBuilder.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/apps/FopFactoryBuilder.java b/src/java/org/apache/fop/apps/FopFactoryBuilder.java
index 6c3da57f3..d062b2f8a 100644
--- a/src/java/org/apache/fop/apps/FopFactoryBuilder.java
+++ b/src/java/org/apache/fop/apps/FopFactoryBuilder.java
@@ -97,6 +97,17 @@ public final class FopFactoryBuilder {
* @deprecated Exposing the {@link FopFactoryConfig} is only to maintain backwards compatibility
*/
public FopFactoryConfig buildConfig() {
+ return buildConfiguration();
+ }
+
+ /**
+ * Builds the configuration object used by the FopFactory.
+ *
+ * @return the config for the {@link FopFactory}
+ */
+ // The {@link FopFactoryConfig} doesn't need to be exposed in the "public" API, this method
+ // should remain package private.
+ FopFactoryConfig buildConfiguration() {
fopFactoryConfigBuilder = CompletedFopFactoryConfigBuilder.INSTANCE;
return config;
}
@@ -107,7 +118,7 @@ public final class FopFactoryBuilder {
* @return the FopFactory instance
*/
public FopFactory build() {
- return FopFactory.newInstance(buildConfig());
+ return FopFactory.newInstance(buildConfiguration());
}
/**