Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2522 - in development/main: depot/console/etc/bin depot/console/src/main/net/dpml/depot/console depot/console/src/main/net/dpml/depot/logging depot/station/src/main/net/dpml/depot/prefs metro/composition/builder/src/main/net/dpml/composition/builder metro/composition/control/src/main/net/dpml/composition/info metro/composition/testing/acme metro/composition/testing/acme/src/main/net/dpml/composition/testing metro/composition/testing/test metro/composition/testing/test/src/main/net/dpml/test/config metro/composition/testing/test/src/main/net/dpml/test/state metro/composition/testing/workshop/src/main/net/dpml/test transit/core/handler/src/main/net/dpml/transit

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: r2522 - in development/main: depot/console/etc/bin depot/console/src/main/net/dpml/depot/console depot/console/src/main/net/dpml/depot/logging depot/station/src/main/net/dpml/depot/prefs metro/composition/builder/src/main/net/dpml/composition/builder metro/composition/control/src/main/net/dpml/composition/info metro/composition/testing/acme metro/composition/testing/acme/src/main/net/dpml/composition/testing metro/composition/testing/test metro/composition/testing/test/src/main/net/dpml/test/config metro/composition/testing/test/src/main/net/dpml/test/state metro/composition/testing/workshop/src/main/net/dpml/test transit/core/handler/src/main/net/dpml/transit
  • Date: Thu, 12 May 2005 11:23:55 +0000

Author: mcconnell AT dpml.net
Date: Thu May 12 11:23:50 2005
New Revision: 2522

Modified:
development/main/depot/console/etc/bin/depot.bat

development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
development/main/depot/console/src/main/net/dpml/depot/console/Main.java

development/main/depot/console/src/main/net/dpml/depot/logging/ConfigurationHandler.java

development/main/depot/console/src/main/net/dpml/depot/logging/LoggingManager.java

development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java

development/main/metro/composition/builder/src/main/net/dpml/composition/builder/TypeBuilderTask.java

development/main/metro/composition/control/src/main/net/dpml/composition/info/InfoDescriptor.java
development/main/metro/composition/testing/acme/build.xml

development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/AcmeContainer.java

development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/BadWidget.java

development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/GizmoComponent.java

development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/WidgetComponent.java
development/main/metro/composition/testing/test/build.xml

development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableComponent.java

development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableContainer.java

development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagedComponent.java

development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagingContainer.java

development/main/metro/composition/testing/workshop/src/main/net/dpml/test/WorkshopComponent.java
development/main/transit/core/handler/src/main/net/dpml/transit/Main.java

development/main/transit/core/handler/src/main/net/dpml/transit/Transit.java
Log:
Remove a recursive class refernces related to the establishment of the
logging configuration class and move the static system property declarations
in Transit that are related to logging from Transit to Main. In principal we
should be able to remove logging concerns from Transit completely.

Modified: development/main/depot/console/etc/bin/depot.bat
==============================================================================
--- development/main/depot/console/etc/bin/depot.bat (original)
+++ development/main/depot/console/etc/bin/depot.bat Thu May 12 11:23:50
2005
@@ -26,7 +26,7 @@
set $ARGS=%*

:RUN_DEPOT
-%JAVA% -Djava.system.class.loader=net.dpml.depot.console.DepotClassLoader
%$POLICY% %CLASSLOADER% %DEPOT_JVM_OPTS% -classpath %$CLASSPATH%
net.dpml.depot.console.Main %DEPOT_ARGS% %$ARGS%
+%JAVA% -Djava.system.class.loader=net.dpml.depot.console.DepotClassLoader
-Djava.util.logging.config.class=net.dpml.depot.logging.ConfigurationHandler
%$POLICY% %CLASSLOADER% %DEPOT_JVM_OPTS% -classpath %$CLASSPATH%
net.dpml.depot.console.Main %DEPOT_ARGS% %$ARGS%
goto EndOfScript
:EndOfScript


Modified:
development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
==============================================================================
---
development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
(original)
+++
development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
Thu May 12 11:23:50 2005
@@ -23,8 +23,6 @@
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.prefs.Preferences;
-import java.util.logging.Logger;
-import java.util.logging.Level;
import java.net.URL;
import java.net.URLClassLoader;

@@ -37,12 +35,10 @@
public final class DepotClassLoader extends URLClassLoader
{
private boolean m_sealed = false;
- private final Logger m_logger;

public DepotClassLoader( ClassLoader parent )
{
super( new URL[0], parent );
- m_logger = Logger.getLogger( "depot.classloader" );
}

void setBootstrapClasspath( String classpath ) throws IOException
@@ -58,7 +54,6 @@
{
String path = (String) tokenizer.nextElement();
URL url = resolveURL( path );
- m_logger.fine( "adding: " + url );
addURL( url );
}
m_sealed = true;

Modified:
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
==============================================================================
--- development/main/depot/console/src/main/net/dpml/depot/console/Main.java
(original)
+++ development/main/depot/console/src/main/net/dpml/depot/console/Main.java
Thu May 12 11:23:50 2005
@@ -38,9 +38,24 @@
*/
public final class Main
{
- //-----------------------------------------------------------------------
- // static
- //-----------------------------------------------------------------------
+
//--------------------------------------------------------------------------
+ // static utilities for setup of logging manager
+
//--------------------------------------------------------------------------
+
+ // The following keys and static operations are needed to trigger the
loading
+ // of a custom LogManager. The log manager is loader by requesting the
loading
+ // of a class named under the LOG_MANAGER_KEY key. This will fail with
a
+ // ClassNotFound but the LogManager impl checks for the class in the
context
+ // classloader if and only if the first property request fails (which is
really
+ // strange). We also include a custom logging configuration handler
declaration
+ // for the setup and maintenance of the logging configuration.
+
+ static
+ {
+ System.setProperty( "java.util.logging.manager",
"net.dpml.depot.logging.LoggingManager" );
+ System.setProperty( "java.util.logging.manager.altclassloader",
"net.dpml.depot.logging.LoggingManager" );
+ System.setProperty( "java.util.logging.config.class",
"net.dpml.depot.logging.ConfigurationHandler" );
+ }

private static String DEPOT_STATION_CLASSPATH =
"@DEPOT-STATION-CLASSPATH@";

@@ -134,6 +149,11 @@
return;
}

+ Thread.currentThread().setContextClassLoader(
Main.class.getClassLoader() );
+
+ Logger logger = Logger.getLogger( "depot" );
+ logger.info( "loading " + profile.name() );
+
String classpath = resolveClasspath( profile );

if( null == classpath )
@@ -192,7 +212,6 @@
String value = prefs.get( key, null );
if( null != value )
{
-System.out.println( "setting: " + key + " = " + value );
System.setProperty( key, value );
}
}

Modified:
development/main/depot/console/src/main/net/dpml/depot/logging/ConfigurationHandler.java
==============================================================================
---
development/main/depot/console/src/main/net/dpml/depot/logging/ConfigurationHandler.java
(original)
+++
development/main/depot/console/src/main/net/dpml/depot/logging/ConfigurationHandler.java
Thu May 12 11:23:50 2005
@@ -51,7 +51,7 @@
"java.util.logging.ConsoleHandler" );
properties.setProperty(
"java.util.logging.ConsoleHandler.formatter",
- "net.dpml.transit.logging.StandardFormatter" );
+ "net.dpml.depot.logging.StandardFormatter" );

//
// set the default level by setting the root logger level

Modified:
development/main/depot/console/src/main/net/dpml/depot/logging/LoggingManager.java
==============================================================================
---
development/main/depot/console/src/main/net/dpml/depot/logging/LoggingManager.java
(original)
+++
development/main/depot/console/src/main/net/dpml/depot/logging/LoggingManager.java
Thu May 12 11:23:50 2005
@@ -22,6 +22,5 @@

public class LoggingManager extends LogManager
{
-
}


Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
Thu May 12 11:23:50 2005
@@ -79,8 +79,7 @@

//--------------------------------------------------------------------------

/**
- * Creation of a new hosts table.
- * @param entity the entity that this table is presenting
+ * Creation of a new table.
* @param data a table model containing the data to layout in view
* @param columns the table column model to apply
*/

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
==============================================================================
--- development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
(original)
+++ development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
Thu May 12 11:23:50 2005
@@ -43,7 +43,6 @@
//

System.setProperty( "java.protocol.handler.pkgs", "net.dpml.transit"
);
- System.setProperty( "java.util.logging.config.class",
"net.dpml.transit.logging.ConfigurationHandler" );

Logger logger = Logger.getLogger( "depot" );
logger.info( "Welcome to Depot" );

Modified:
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/TypeBuilderTask.java
==============================================================================
---
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/TypeBuilderTask.java
(original)
+++
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/TypeBuilderTask.java
Thu May 12 11:23:50 2005
@@ -60,6 +60,9 @@
private String m_name;
private String m_classname;
private Class m_class;
+ private String m_lifestyle;
+ private String m_collection;
+ private boolean m_threadsafe = false;

//---------------------------------------------------------------
// setters
@@ -75,6 +78,51 @@
m_classname = classname;
}

+ public void setThreadsafe( boolean value )
+ {
+ m_threadsafe = value;
+ }
+
+ public void setCollection( String value )
+ {
+ if( InfoDescriptor.HARD.equalsIgnoreCase( value ) )
+ {
+ m_collection = InfoDescriptor.HARD;
+ }
+ else if( InfoDescriptor.WEAK.equalsIgnoreCase( value ) )
+ {
+ m_collection = InfoDescriptor.WEAK;
+ }
+ else if( InfoDescriptor.SOFT.equalsIgnoreCase( value ) )
+ {
+ m_collection = InfoDescriptor.SOFT;
+ }
+ else
+ {
+ final String error =
+ "Unsupported collection policy '" + value + "'.";
+ throw new BuildException( error );
+ }
+ }
+
+ public void setLifestyle( String value )
+ {
+ if( "request".equalsIgnoreCase( value ) ||
"transient".equalsIgnoreCase( value ) )
+ {
+ m_lifestyle = InfoDescriptor.TRANSIENT;
+ }
+ else if( "singleton".equalsIgnoreCase( value ) ||
"shared".equalsIgnoreCase( value ) )
+ {
+ m_lifestyle = InfoDescriptor.SINGLETON;
+ }
+ else
+ {
+ final String error =
+ "Unsupported lifestyle policy '" + value + "'.";
+ throw new BuildException( error );
+ }
+ }
+
//---------------------------------------------------------------
// Builder
//---------------------------------------------------------------
@@ -117,11 +165,14 @@
log( "creating: " + subject.getName() );
InfoDescriptor info = createInfoDescriptor( subject );
ServiceDescriptor[] services = createServiceDescriptors( subject );
- DependencyDescriptor[] dependencies = new DependencyDescriptor[0];
// legacy
+ DependencyDescriptor[] dependencies = new DependencyDescriptor[0];
// TODO: remove this
CategoryDescriptor[] categories = new CategoryDescriptor[0];
ContextDescriptor context = createContextDescriptor( subject );
PartDescriptor[] parts = createPartDescriptors( subject );
Configuration config = createDefaultConfiguration( subject );
+
+ // TODO: add state model
+
return new Type( info, categories, context, services, dependencies,
config, parts );
}

@@ -176,6 +227,9 @@

private boolean getThreadSafeCapability( Class subject ) throws
IntrospectionException
{
+ return m_threadsafe;
+
+ /*
try
{
Field field = subject.getDeclaredField(
"TYPE_THREADSAFE_CAPABLE" );
@@ -209,10 +263,28 @@
+ "].";
throw new IntrospectionException( error );
}
+ */
}

private String getLifestylePreference( Class subject, boolean threadsafe
) throws IntrospectionException
{
+ if( null != m_lifestyle )
+ {
+ return m_lifestyle;
+ }
+ else
+ {
+ if( m_threadsafe )
+ {
+ return InfoDescriptor.SINGLETON;
+ }
+ else
+ {
+ return InfoDescriptor.TRANSIENT;
+ }
+ }
+
+ /*
try
{
Field field = subject.getDeclaredField(
"TYPE_LIFESTYLE_PREFERENCE" );
@@ -260,10 +332,14 @@
+ "].";
throw new IntrospectionException( error );
}
+ */
}

private String getCollectionPolicyPreference( Class subject ) throws
IntrospectionException
{
+ return m_collection;
+
+ /*
try
{
Field field = subject.getDeclaredField(
"TYPE_COLLECTION_PREFERENCE" );
@@ -297,10 +373,12 @@
+ "].";
throw new IntrospectionException( error );
}
+ */
}

private String getConfigurationSchema( Class subject ) throws
IntrospectionException
{
+ // TODO: change this to a namespaced attribute on the configuration
try
{
Field field = subject.getDeclaredField(
"TYPE_CONFIGURATION_SCHEMA" );
@@ -354,6 +432,8 @@

private Configuration createDefaultConfiguration( Class subject )
{
+ // TODO: change this to a nested element in the <type>
+
final String classname = subject.getName();
final ClassLoader classloader = subject.getClassLoader();
final String xdefaults = classname.replace( '.', '/' ) + ".xconfig";
@@ -382,6 +462,7 @@

private Properties getTypeProperties( Class subject ) throws
IntrospectionException
{
+ // TODO: change this to a nested element in the <type>
try
{
Field field = subject.getDeclaredField( "TYPE_INFO_PROPERTIES" );

Modified:
development/main/metro/composition/control/src/main/net/dpml/composition/info/InfoDescriptor.java
==============================================================================
---
development/main/metro/composition/control/src/main/net/dpml/composition/info/InfoDescriptor.java
(original)
+++
development/main/metro/composition/control/src/main/net/dpml/composition/info/InfoDescriptor.java
Thu May 12 11:23:50 2005
@@ -191,9 +191,16 @@
}
m_schema = schema;

- if ( lifestyle == null )
+ if( lifestyle == null )
{
- m_lifestyle = TRANSIENT;
+ if( threadsafe )
+ {
+ m_lifestyle = SINGLETON;
+ }
+ else
+ {
+ m_lifestyle = TRANSIENT;
+ }
}
else
{

Modified: development/main/metro/composition/testing/acme/build.xml
==============================================================================
--- development/main/metro/composition/testing/acme/build.xml (original)
+++ development/main/metro/composition/testing/acme/build.xml Thu May 12
11:23:50 2005
@@ -11,12 +11,12 @@
<types xmlns="plugin:dpml/composition/dpml-composition-builder">
<type class="net.dpml.composition.testing.ExampleComponent"/>
<type class="net.dpml.composition.testing.ExampleContainer"/>
- <type class="net.dpml.composition.testing.WidgetComponent"/>
<type class="net.dpml.composition.testing.SimpleWidget"/>
- <type class="net.dpml.composition.testing.BadWidget"/>
- <type class="net.dpml.composition.testing.GizmoComponent"/>
<type class="net.dpml.composition.testing.DimensionComponent"/>
- <type class="net.dpml.composition.testing.AcmeContainer"/>
+ <type class="net.dpml.composition.testing.BadWidget"
threadsafe="true"/>
+ <type class="net.dpml.composition.testing.GizmoComponent"
threadsafe="true"/>
+ <type class="net.dpml.composition.testing.AcmeContainer"
threadsafe="true"/>
+ <type class="net.dpml.composition.testing.WidgetComponent"
threadsafe="true"/>
</types>

<!-- creation of a component for reference by uri -->

Modified:
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/AcmeContainer.java
==============================================================================
---
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/AcmeContainer.java
(original)
+++
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/AcmeContainer.java
Thu May 12 11:23:50 2005
@@ -30,12 +30,6 @@
public class AcmeContainer implements Example
{
//------------------------------------------------------------------
- // static
- //------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- //------------------------------------------------------------------
// state
//------------------------------------------------------------------


Modified:
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/BadWidget.java
==============================================================================
---
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/BadWidget.java
(original)
+++
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/BadWidget.java
Thu May 12 11:23:50 2005
@@ -27,14 +27,6 @@
*/
public class BadWidget implements Widget
{
- // static
- //------------------------------------------------------------------
-
- /**
- * Declaration to the container that this component is thread-safe.
- */
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
//------------------------------------------------------------------
// state
//------------------------------------------------------------------

Modified:
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/GizmoComponent.java
==============================================================================
---
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/GizmoComponent.java
(original)
+++
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/GizmoComponent.java
Thu May 12 11:23:50 2005
@@ -27,15 +27,6 @@
public class GizmoComponent implements Gizmo
{
//------------------------------------------------------------------
- // static
- //------------------------------------------------------------------
-
- /**
- * Declaration to the container that this component is thread-safe.
- */
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- //------------------------------------------------------------------
// state
//------------------------------------------------------------------


Modified:
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/WidgetComponent.java
==============================================================================
---
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/WidgetComponent.java
(original)
+++
development/main/metro/composition/testing/acme/src/main/net/dpml/composition/testing/WidgetComponent.java
Thu May 12 11:23:50 2005
@@ -30,15 +30,6 @@
public class WidgetComponent implements Widget
{
//------------------------------------------------------------------
- // static
- //------------------------------------------------------------------
-
- /**
- * Declaration to the container that this component is thread-safe.
- */
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- //------------------------------------------------------------------
// state
//------------------------------------------------------------------


Modified: development/main/metro/composition/testing/test/build.xml
==============================================================================
--- development/main/metro/composition/testing/test/build.xml (original)
+++ development/main/metro/composition/testing/test/build.xml Thu May 12
11:23:50 2005
@@ -205,8 +205,8 @@
State management examples.
-->
<types xmlns="plugin:dpml/composition/dpml-composition-builder">
- <type class="net.dpml.test.state.ManagedComponent"/>
- <type class="net.dpml.test.state.ManagingContainer"/>
+ <type class="net.dpml.test.state.ManagedComponent" threadsafe="true"/>
+ <type class="net.dpml.test.state.ManagingContainer" threadsafe="true"/>
</types>

<component dest="target/test/managed-component.part"
@@ -235,8 +235,8 @@
Configuration examples.
-->
<types xmlns="plugin:dpml/composition/dpml-composition-builder">
- <type class="net.dpml.test.config.ConfigurableComponent"/>
- <type class="net.dpml.test.config.ConfigurableContainer"/>
+ <type class="net.dpml.test.config.ConfigurableComponent"
threadsafe="true"/>
+ <type class="net.dpml.test.config.ConfigurableContainer"
threadsafe="true"/>
</types>

<component dest="target/test/configurable-container.part"

Modified:
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableComponent.java
==============================================================================
---
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableComponent.java
(original)
+++
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableComponent.java
Thu May 12 11:23:50 2005
@@ -32,12 +32,6 @@
public class ConfigurableComponent implements Executable
{
// ------------------------------------------------------------------
- // static
- // ------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- // ------------------------------------------------------------------
// state
// ------------------------------------------------------------------


Modified:
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableContainer.java
==============================================================================
---
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableContainer.java
(original)
+++
development/main/metro/composition/testing/test/src/main/net/dpml/test/config/ConfigurableContainer.java
Thu May 12 11:23:50 2005
@@ -40,12 +40,6 @@
public class ConfigurableContainer implements Executable
{
//------------------------------------------------------------------
- // static
- //------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- //------------------------------------------------------------------
// state
//------------------------------------------------------------------


Modified:
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagedComponent.java
==============================================================================
---
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagedComponent.java
(original)
+++
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagedComponent.java
Thu May 12 11:23:50 2005
@@ -37,13 +37,6 @@
*/
public class ManagedComponent implements StateListener
{
-
- // ------------------------------------------------------------------
- // static
- // ------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
// ------------------------------------------------------------------
// state
// ------------------------------------------------------------------

Modified:
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagingContainer.java
==============================================================================
---
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagingContainer.java
(original)
+++
development/main/metro/composition/testing/test/src/main/net/dpml/test/state/ManagingContainer.java
Thu May 12 11:23:50 2005
@@ -37,12 +37,6 @@
public class ManagingContainer implements Startable
{
//------------------------------------------------------------------
- // static
- //------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = true;
-
- //------------------------------------------------------------------
// state
//------------------------------------------------------------------


Modified:
development/main/metro/composition/testing/workshop/src/main/net/dpml/test/WorkshopComponent.java
==============================================================================
---
development/main/metro/composition/testing/workshop/src/main/net/dpml/test/WorkshopComponent.java
(original)
+++
development/main/metro/composition/testing/workshop/src/main/net/dpml/test/WorkshopComponent.java
Thu May 12 11:23:50 2005
@@ -31,12 +31,6 @@
public class WorkshopComponent
{
// ------------------------------------------------------------------
- // static
- // ------------------------------------------------------------------
-
- public static final boolean TYPE_THREADSAFE_CAPABLE = false;
-
- // ------------------------------------------------------------------
// state
// ------------------------------------------------------------------


Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
==============================================================================
--- development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
(original)
+++ development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
Thu May 12 11:23:50 2005
@@ -51,6 +51,47 @@
*/
public final class Main
{
+
//--------------------------------------------------------------------------
+ // static utilities for setup of logging manager
+
//--------------------------------------------------------------------------
+
+ // The following keys and static operations are needed to trigger the
loading
+ // of a custom LogManager. The log manager is loader by requesting the
loading
+ // of a class named under the LOG_MANAGER_KEY key. This will fail with
a
+ // ClassNotFound but the LogManager impl checks for the class in the
context
+ // classloader if and only if the first property request fails (which is
really
+ // strange). We also include a custom logging configuration handler
declaration
+ // for the setup and maintenance of the logging configuration.
+
+ /**
+ * Java Logging Manager impl key that is used to trigger a ClassNotFound
+ * exception which in turn triggers evaluation of LOG_MANAGER_ALT_KEY.
+ */
+ private static final String LOG_MANAGER_KEY =
"java.util.logging.manager";
+
+ /**
+ * The key used to resolve the logging manager class from the context
classloader.
+ */
+ private static final String LOG_MANAGER_ALT_KEY =
"java.util.logging.manager.altclassloader";
+
+ /**
+ * The key used to declare the custom logging configuration handler class.
+ */
+ private static final String LOG_CONFIG_CLASS_KEY =
"java.util.logging.config.class";
+
+ static
+ {
+ System.setProperty( LOG_MANAGER_KEY,
+ System.getProperty( LOG_MANAGER_KEY,
+ "net.dpml.transit.logging.LoggingManager" ) );
+ System.setProperty( LOG_MANAGER_ALT_KEY,
+ System.getProperty( LOG_MANAGER_ALT_KEY,
+ "net.dpml.transit.logging.LoggingManager" ) );
+ System.setProperty( LOG_CONFIG_CLASS_KEY,
+ System.getProperty( LOG_CONFIG_CLASS_KEY,
+ "net.dpml.transit.logging.ConfigurationHandler" ) );
+ }
+
/**
* The transit uri.
*/

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/Transit.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/Transit.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/Transit.java
Thu May 12 11:23:50 2005
@@ -477,46 +477,6 @@
}
}

-
//--------------------------------------------------------------------------
- // static utilities for setup of logging manager
-
//--------------------------------------------------------------------------
-
- // The following keys and static operations are needed to trigger the
loading
- // of a custom LogManager. The log manager is loader by requesting the
loading
- // of a class named under the LOG_MANAGER_KEY key. This will fail with
a
- // ClassNotFound but the LogManager impl checks for the class in the
context
- // classloader if and only if the first property request fails (which is
really
- // strange). We also include a custom logging configuration handler
declaration
- // for the setup and maintenance of the logging configuration.
-
- /**
- * Java Logging Manager impl key that is used to trigger a ClassNotFound
- * exception which in turn triggers evaluation of LOG_MANAGER_ALT_KEY.
- */
- private static final String LOG_MANAGER_KEY =
"java.util.logging.manager";
-
- /**
- * The key used to resolve the logging manager class from the context
classloader.
- */
- private static final String LOG_MANAGER_ALT_KEY =
"java.util.logging.manager.altclassloader";
-
- /**
- * The key used to declare the custom logging configuration handler class.
- */
- private static final String LOG_CONFIG_CLASS_KEY =
"java.util.logging.config.class";
-
- static
- {
- System.setProperty( LOG_MANAGER_KEY,
- System.getProperty( LOG_MANAGER_KEY,
- "net.dpml.transit.logging.LoggingManager" ) );
- System.setProperty( LOG_MANAGER_ALT_KEY,
- System.getProperty( LOG_MANAGER_ALT_KEY,
- "net.dpml.transit.logging.LoggingManager" ) );
- System.setProperty( LOG_CONFIG_CLASS_KEY,
- System.getProperty( LOG_CONFIG_CLASS_KEY,
- "net.dpml.transit.logging.ConfigurationHandler" ) );
- }

//------------------------------------------------------------------
// static internal



  • svn commit: r2522 - in development/main: depot/console/etc/bin depot/console/src/main/net/dpml/depot/console depot/console/src/main/net/dpml/depot/logging depot/station/src/main/net/dpml/depot/prefs metro/composition/builder/src/main/net/dpml/composition/builder metro/composition/control/src/main/net/dpml/composition/info metro/composition/testing/acme metro/composition/testing/acme/src/main/net/dpml/composition/testing metro/composition/testing/test metro/composition/testing/test/src/main/net/dpml/test/config metro/composition/testing/test/src/main/net/dpml/test/state metro/composition/testing/workshop/src/main/net/dpml/test transit/core/handler/src/main/net/dpml/transit, mcconnell, 05/12/2005

Archive powered by MHonArc 2.6.24.

Top of Page