notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2978 - development/main/metro/central/src/main/net/dpml/metro/central
- From: mcconnell AT dpml.net
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2978 - development/main/metro/central/src/main/net/dpml/metro/central
- Date: Tue, 05 Jul 2005 03:51:06 -0400
Author: mcconnell AT dpml.net
Date: Tue Jul 5 03:51:06 2005
New Revision: 2978
Modified:
development/main/metro/central/src/main/net/dpml/metro/central/MetroInstaller.java
Log:
o add deinstalation process from Metro
Modified:
development/main/metro/central/src/main/net/dpml/metro/central/MetroInstaller.java
==============================================================================
---
development/main/metro/central/src/main/net/dpml/metro/central/MetroInstaller.java
(original)
+++
development/main/metro/central/src/main/net/dpml/metro/central/MetroInstaller.java
Tue Jul 5 03:51:06 2005
@@ -40,7 +40,6 @@
if( install.booleanValue() )
{
- System.out.println( " adding part content handler to available
Transit profiles" );
TransitModel[] models = home.getTransitModels();
for( int i=0; i<models.length; i++ )
{
@@ -54,7 +53,25 @@
}
else
{
- System.out.println( " removing part content handler from
Transit profiles" );
+ TransitModel[] models = home.getTransitModels();
+ for( int i=0; i<models.length; i++ )
+ {
+ TransitModel model = models[i];
+ ContentRegistryModel registry =
model.getContentRegistryModel();
+ try
+ {
+ ContentModel content = registry.getContentModel( PART );
+ URI uri = content.getCodeBaseURI();
+ if( uri.equals( m_production ) || uri.equals(
m_development ) )
+ {
+ registry.removeContentModel( content );
+ }
+ }
+ catch( UnknownKeyException e )
+ {
+ // nothing to remove
+ }
+ }
}
}
- svn commit: r2978 - development/main/metro/central/src/main/net/dpml/metro/central, mcconnell, 07/05/2005
Archive powered by MHonArc 2.6.24.