Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2614 - in development/main/transit/core/handler/src/main/net/dpml/transit: . content

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2614 - in development/main/transit/core/handler/src/main/net/dpml/transit: . content
  • Date: Thu, 19 May 2005 02:24:29 +0000

Author: mcconnell AT dpml.net
Date: Thu May 19 02:24:27 2005
New Revision: 2614

Modified:

development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java

development/main/transit/core/handler/src/main/net/dpml/transit/content/ContentHandlerRegistry.java
Log:
Enable system property overriding of a content managemenr plugin spec.

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
Thu May 19 02:24:27 2005
@@ -379,8 +379,11 @@
{
return;
}
+
Preferences prefs = Preferences.userNodeForPackage(
ContentHandlerRegistry.class );
- String path = prefs.get( "uri", null );
+ String defaultPath = prefs.get( "uri", null );
+ String path =
+ System.getProperty(
ContentHandlerRegistry.CONTENT_HANDLER_PLUGIN_KEY, defaultPath );
if( null != path )
{
m_logger.info( "assigning custom content handler registry" );

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/content/ContentHandlerRegistry.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/content/ContentHandlerRegistry.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/content/ContentHandlerRegistry.java
Thu May 19 02:24:27 2005
@@ -19,23 +19,7 @@
package net.dpml.transit.content;

import java.io.IOException;
-import java.net.URI;
-import java.net.URL;
-import java.net.URISyntaxException;
import java.net.ContentHandler;
-import java.util.Hashtable;
-import java.util.Map;
-import java.util.WeakHashMap;
-import java.util.prefs.Preferences;
-import java.util.prefs.NodeChangeListener;
-import java.util.prefs.NodeChangeEvent;
-import java.util.prefs.BackingStoreException;
-import java.util.logging.Logger;
-
-import net.dpml.io.CascadingIOException;
-
-import net.dpml.transit.TransitException;
-import net.dpml.transit.repository.StandardLoader;

/**
* A interface supporting access to pluggable content handlers. An
implementation
@@ -43,6 +27,8 @@
*/
public interface ContentHandlerRegistry
{
+ public static final String CONTENT_HANDLER_PLUGIN_KEY =
"dpml.transit.content.plugin";
+
/**
* Return a content handler capable for supporting the supplied type. If
* the a handler is available the handler is returned otherwise the
returned



  • svn commit: r2614 - in development/main/transit/core/handler/src/main/net/dpml/transit: . content, mcconnell, 05/18/2005

Archive powered by MHonArc 2.6.24.

Top of Page