Repository: struts
Updated Branches:
  refs/heads/master 6ee73dce7 -> 9d60f5bbc


Defines new interface for factory


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/b42b9f16
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/b42b9f16
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/b42b9f16

Branch: refs/heads/master
Commit: b42b9f16c4598505e0b1cfef78e6639237b2d712
Parents: 6ee73dc
Author: Lukasz Lenart <lukaszlen...@apache.org>
Authored: Wed Mar 15 08:46:09 2017 +0100
Committer: Lukasz Lenart <lukaszlen...@apache.org>
Committed: Wed Mar 15 08:46:09 2017 +0100

----------------------------------------------------------------------
 .../xwork2/LocaleProviderFactory.java           | 32 ++++++++++++++++++++
 1 file changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/b42b9f16/core/src/main/java/com/opensymphony/xwork2/LocaleProviderFactory.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/com/opensymphony/xwork2/LocaleProviderFactory.java 
b/core/src/main/java/com/opensymphony/xwork2/LocaleProviderFactory.java
new file mode 100644
index 0000000..dc2e7dd
--- /dev/null
+++ b/core/src/main/java/com/opensymphony/xwork2/LocaleProviderFactory.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2006,2009 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.opensymphony.xwork2;
+
+/**
+ * Allows delegate creation of {@link LocaleProvider} to another 
implementation provided
+ * by a user. It also allows avoid problems with too many dependencies as 
{@link LocaleProvider}
+ * is implemented by the {@link ActionSupport} which can be defined as a bean 
in Spring.
+ */
+public interface LocaleProviderFactory {
+
+    /**
+     * Gets the provided locale.
+     *
+     * @return the locale.
+     */
+    LocaleProvider createLocaleProvider();
+
+}

Reply via email to