[Yanel-commits] rev 29390 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core/map
michi at wyona.com
michi at wyona.com
Fri Nov 30 15:32:08 CET 2007
Author: michi
Date: 2007-11-30 15:32:07 +0100 (Fri, 30 Nov 2007)
New Revision: 29390
Added:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfigPathResolver.java
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java
Log:
path resolved outsourced
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java 2007-11-30 12:11:35 UTC (rev 29389)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/Realm.java 2007-11-30 14:32:07 UTC (rev 29390)
@@ -471,27 +471,3 @@
this.languageHandler = languageHandler;
}
}
-
-/**
- *
- */
-class RealmConfigPathResolver implements javax.xml.transform.URIResolver {
-
- private File realmConfigFile;
-
- /**
- *
- */
- public RealmConfigPathResolver(Realm realm) {
- realmConfigFile = realm.getConfigFile();
- }
-
- /**
- *
- */
- public javax.xml.transform.Source resolve(String href, String base) throws javax.xml.transform.TransformerException {
- javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource();
- source.setSystemId(FileUtil.resolve(realmConfigFile, new File(href)).toString());
- return source;
- }
-}
Added: public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfigPathResolver.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfigPathResolver.java (rev 0)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfigPathResolver.java 2007-11-30 14:32:07 UTC (rev 29390)
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ * 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.wyona.org/licenses/APACHE-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 org.wyona.yanel.core.map;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+
+import org.wyona.commons.io.FileUtil;
+import org.wyona.commons.io.Path;
+import org.wyona.security.core.IdentityManagerFactory;
+import org.wyona.security.core.PolicyManagerFactory;
+import org.wyona.security.core.api.IdentityManager;
+import org.wyona.security.core.api.PolicyManager;
+import org.wyona.yanel.core.LanguageHandler;
+import org.wyona.yanel.core.Yanel;
+import org.wyona.yanel.core.attributes.translatable.DefaultTranslationManager;
+import org.wyona.yanel.core.attributes.translatable.TranslationManager;
+import org.wyona.yanel.core.api.security.WebAuthenticator;
+import org.wyona.yanel.core.util.ConfigurationUtil;
+import org.wyona.yarep.core.Repository;
+import org.wyona.yarep.core.RepositoryFactory;
+import org.xml.sax.SAXException;
+
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
+
+import org.apache.log4j.Category;
+
+/**
+ *
+ */
+public class RealmConfigPathResolver implements javax.xml.transform.URIResolver {
+
+ private File realmConfigFile;
+
+ /**
+ *
+ */
+ public RealmConfigPathResolver(Realm realm) {
+ realmConfigFile = realm.getConfigFile();
+ }
+
+ /**
+ *
+ */
+ public javax.xml.transform.Source resolve(String href, String base) throws javax.xml.transform.TransformerException {
+ javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource();
+ source.setSystemId(FileUtil.resolve(realmConfigFile, new File(href)).toString());
+ return source;
+ }
+}
More information about the Yanel-commits
mailing list