geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r902513 - /geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
Date Sun, 24 Jan 2010 00:04:25 GMT
Author: gawor
Date: Sun Jan 24 00:04:25 2010
New Revision: 902513

URL: http://svn.apache.org/viewvc?rev=902513&view=rev
Log:
GERONIMO-5030: Missed a file for r902507

Added:
    geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
  (with props)

Added: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java?rev=902513&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
(added)
+++ geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
Sun Jan 24 00:04:25 2010
@@ -0,0 +1,93 @@
+/**
+ *  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.
+ */
+package org.apache.geronimo.j2ee.deployment;
+
+import java.net.URI;
+import java.util.Map;
+
+import org.apache.geronimo.common.DeploymentException;
+import org.apache.geronimo.deployment.BundleResourceContext;
+import org.apache.geronimo.deployment.ClassPathList;
+import org.apache.geronimo.deployment.Deployable;
+import org.apache.geronimo.deployment.ModuleList;
+import org.apache.geronimo.deployment.ResourceContext;
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.gbean.AbstractNameQuery;
+import org.apache.geronimo.kernel.Naming;
+import org.apache.geronimo.kernel.config.ConfigurationData;
+import org.apache.geronimo.kernel.config.ConfigurationManager;
+import org.apache.geronimo.kernel.config.ConfigurationModuleType;
+import org.apache.geronimo.kernel.repository.Environment;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @version $Rev:386276 $ $Date$
+ */
+public class BundleDeploymentContext extends EARContext {
+      
+    private Bundle bundle;
+    
+    public BundleDeploymentContext(Environment environment,
+                                   ConfigurationModuleType moduleType,
+                                   Naming naming,
+                                   ConfigurationManager configurationManager,
+                                   BundleContext bundleContext,
+                                   AbstractNameQuery serverName,
+                                   AbstractName baseName,
+                                   AbstractNameQuery transactionManagerObjectName,
+                                   AbstractNameQuery connectionTrackerObjectName,
+                                   AbstractNameQuery corbaGBeanObjectName,
+                                   Map messageDestinations,
+                                   Bundle bundle) throws DeploymentException {
+        super(null, null, 
+              environment, moduleType, naming, configurationManager, bundleContext,
+              serverName, baseName, transactionManagerObjectName, connectionTrackerObjectName,

+              corbaGBeanObjectName, messageDestinations);
+        this.bundle = bundle;
+    }
+
+    @Override
+    protected void verifyArguments() throws DeploymentException {                
+    }
+    
+    @Override
+    protected ResourceContext createResourceContext() throws DeploymentException {
+        return new BundleResourceContext();
+    }
+    
+    @Override
+    public void initializeConfiguration() throws DeploymentException {
+        try {
+            ConfigurationData configurationData = new ConfigurationData(moduleType, null,
childConfigurationDatas, environment, baseDir, inPlaceConfigurationDir, naming);
+            configurationData.setBundleContext(bundle.getBundleContext());
+            configurationManager.loadConfiguration(configurationData);
+            this.configuration = configurationManager.getConfiguration(environment.getConfigId());
+        } catch (Exception e) {
+            throw new DeploymentException("Unable to create configuration for deployment",
e);
+        }
+    }
+    
+    @Override
+    public void getCompleteManifestClassPath(Deployable deployable, 
+                                             URI moduleBaseUri, 
+                                             URI resolutionUri, 
+                                             ClassPathList classpath, 
+                                             ModuleList exclusions) throws DeploymentException
{
+    }
+    
+}

Propchange: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/BundleDeploymentContext.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message