You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2006/10/08 23:06:35 UTC
svn commit: r454209 - in
/incubator/openejb/trunk/openejb3/container/openejb-loader: pom.xml
src/main/java/org/apache/openejb/loader/SystemInstance.java
Author: jlaskowski
Date: Sun Oct 8 14:06:34 2006
New Revision: 454209
URL: http://svn.apache.org/viewvc?view=rev&rev=454209
Log:
XBean-ize SystemInstance as system
Modified:
incubator/openejb/trunk/openejb3/container/openejb-loader/pom.xml
incubator/openejb/trunk/openejb3/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
Modified: incubator/openejb/trunk/openejb3/container/openejb-loader/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-loader/pom.xml?view=diff&rev=454209&r1=454208&r2=454209
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-loader/pom.xml (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-loader/pom.xml Sun Oct 8 14:06:34 2006
@@ -1,5 +1,26 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.apache.org/licenses/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.
+
+-->
+
+<!-- $Rev$ $Date$ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>container</artifactId>
<groupId>org.apache.openejb</groupId>
@@ -9,6 +30,25 @@
<artifactId>openejb-loader</artifactId>
<packaging>jar</packaging>
<name>OpenEJB :: Container :: Loader</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>maven-xbean-plugin</artifactId>
+ <version>2.7-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>mapping</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <namespace>http://openejb.apache.org/schemas/loader</namespace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
Modified: incubator/openejb/trunk/openejb3/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java?view=diff&rev=454209&r1=454208&r2=454209
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java Sun Oct 8 14:06:34 2006
@@ -21,13 +21,15 @@
/**
* This class aims to be the one and only static in the entire system
- * A static, singleton, instance of this class can be created with the init(props) method
+ * A static, singleton, instance of this class can be created with the {@link #init(Properties)} method
*
* It is assumed that only one singleton per classloader is possible in any given VM
* Thus loading this instance in a classloader will mean there can only be one OpenEJB
* instance for that classloader and all children classloaders.
*
* @version $Revision$ $Date$
+ *
+ * @org.apache.xbean.XBean element="system"
*/
public class SystemInstance {
@@ -38,7 +40,7 @@
private final ClassLoader classLoader;
private final HashMap components;
private final ClassPath classPath;
-
+
private SystemInstance(Properties properties) throws Exception {
this.components = new HashMap();
this.properties = new Properties();
@@ -133,9 +135,8 @@
system = new SystemInstance(properties);
initialized = true;
}
-
+
public static SystemInstance get() {
return system;
}
-
}