geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1382863 - /geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
Date Mon, 10 Sep 2012 14:14:50 GMT
Author: gawor
Date: Mon Sep 10 14:14:49 2012
New Revision: 1382863

URL: http://svn.apache.org/viewvc?rev=1382863&view=rev
Log:
GERONIMO-6386: Forgot to add a class

Added:
    geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
  (with props)

Added: geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java?rev=1382863&view=auto
==============================================================================
--- geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
(added)
+++ geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
Mon Sep 10 14:14:49 2012
@@ -0,0 +1,50 @@
+/**
+ *  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.aries;
+
+import org.apache.aries.application.management.AriesApplication;
+import org.apache.aries.application.management.AriesApplicationContext.ApplicationState;
+import org.apache.aries.application.management.AriesApplicationEvent;
+
+/**
+ * @version $Rev:385232 $ $Date$
+ */
+public class GeronimoApplicationEvent extends AriesApplicationEvent {
+
+    private final AriesApplication application;
+    private final ApplicationState state;
+    
+    public GeronimoApplicationEvent(AriesApplication application, ApplicationState state)
{
+        this.application = application;
+        this.state = state;
+    }
+    
+    @Override
+    public AriesApplication getApplication() {
+        return application;
+    }
+
+    @Override
+    public ApplicationState getType() {
+        return state;
+    }
+    
+    public String toString() {
+        return application.getApplicationMetadata().getApplicationScope() + ": " + state;
+    }
+          
+}

Propchange: geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/GeronimoApplicationEvent.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message