notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2815 - development/main/depot/station/src/main/net/dpml/depot/station
- From: mcconnell AT dpml.net
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2815 - development/main/depot/station/src/main/net/dpml/depot/station
- Date: Thu, 09 Jun 2005 08:11:54 -0400
Author: mcconnell AT dpml.net
Date: Thu Jun 9 08:11:52 2005
New Revision: 2815
Modified:
development/main/depot/station/src/main/net/dpml/depot/station/ActivationProfile.java
development/main/depot/station/src/main/net/dpml/depot/station/ActivationStorage.java
Log:
Modified:
development/main/depot/station/src/main/net/dpml/depot/station/ActivationProfile.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/station/ActivationProfile.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/station/ActivationProfile.java
Thu Jun 9 08:11:52 2005
@@ -38,37 +38,17 @@
public class ActivationProfile extends PluginProfile
{
private String m_classname;
- private ActivationGroupID m_group;
private boolean m_restart;
private ActivationDesc m_descriptor;
public ActivationProfile(
Logger logger, Date creation, Home home, String id, String title,
- Properties properties, boolean command, Connection connection, URI
uri,
- ActivationGroupID group, String classname, boolean restart )
+ Properties properties, URI uri, String classname, boolean restart )
throws ProfileException
{
- super( logger, creation, home, id, title, properties, command,
connection, uri );
-
- m_group = group;
- String location = uri.toASCIIString();
- if( null == group )
- {
- try
- {
- m_descriptor = new ActivationDesc( classname, location,
null, restart );
- }
- catch( ActivationException e )
- {
- final String error =
- "Cannot create activation profile [" + id + "].";
- throw new ProfileException( error, e );
- }
- }
- else
- {
- m_descriptor = new ActivationDesc( group, classname, location,
null, restart );
- }
+ super( logger, creation, home, id, title, properties, false, null,
uri );
+ m_classname = classname;
+ m_restart = restart;
}
public String getClassname()
@@ -90,9 +70,4 @@
{
m_restart = policy;
}
-
- public ActivationDesc getActivationDesc()
- {
- return m_descriptor;
- }
}
Modified:
development/main/depot/station/src/main/net/dpml/depot/station/ActivationStorage.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/station/ActivationStorage.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/station/ActivationStorage.java
Thu Jun 9 08:11:52 2005
@@ -52,25 +52,26 @@
//
------------------------------------------------------------------------
public ActivationStorage(
- Preferences prefs, Logger logger, Date creation, boolean policy,
- ActivationGroupID group ) throws ProfileException
+ Preferences prefs, Logger logger, Date creation, boolean policy )
throws ProfileException
{
super( prefs, logger, creation, policy );
String id = prefs.name();
String title = prefs.get( "title", id );
Properties properties = getProperties();
- Connection connection = getConnection();
- boolean command = prefs.getBoolean( "command", false );
-
+ URI uri = getPluginURI();
String classname = getActivationClassname();
boolean restart = getRestartPolicy();
- URI uri = getPluginURI();
m_profile =
new ActivationProfile(
- logger, creation, this, id, title, properties, command,
- connection, uri, group, classname, restart );
+ logger, creation, this, id, title, properties,
+ uri, classname, restart );
+ }
+
+ public ActivationProfile getActivationProfile()
+ {
+ return m_profile;
}
//
------------------------------------------------------------------------
- svn commit: r2815 - development/main/depot/station/src/main/net/dpml/depot/station, mcconnell, 06/09/2005
Archive powered by MHonArc 2.6.24.