Author: cziegeler
Date: Tue Aug 10 10:07:04 2010
New Revision: 983910
URL: http://svn.apache.org/viewvc?rev=983910&view=rev
Log:
SLING-1636 : Provide a mechanism to detect if a dynamic classloader is still
valid
Added:
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
(with props)
Modified:
sling/trunk/bundles/commons/classloader/pom.xml
Modified: sling/trunk/bundles/commons/classloader/pom.xml
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/pom.xml?rev=983910&r1=983909&r2=983910&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/pom.xml (original)
+++ sling/trunk/bundles/commons/classloader/pom.xml Tue Aug 10 10:07:04 2010
@@ -57,7 +57,7 @@
org.apache.sling.commons.classloader.impl.Activator
</Bundle-Activator>
<Export-Package>
- org.apache.sling.commons.classloader;version=1.1.0
+ org.apache.sling.commons.classloader;version=1.2.0
</Export-Package>
<Private-Package>
org.apache.sling.commons.classloader.impl
Added:
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java?rev=983910&view=auto
==============================================================================
---
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
(added)
+++
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
Tue Aug 10 10:07:04 2010
@@ -0,0 +1,35 @@
+/*
+ * 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.sling.commons.classloader;
+
+/**
+ * A dynamic class loader is a class loader which might get
+ * invalid over time.
+ * Clients can check a class loader if it implements this
+ * method and then reload classes if necessary.
+ *
+ * @since 1.2.0
+ */
+public interface DynamicClassLoader {
+
+ /**
+ * Is this class loader still alive/valid?
+ */
+ boolean isLive();
+}
Propchange:
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
------------------------------------------------------------------------------
svn:keywords = author date id revision rev url
Propchange:
sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java
------------------------------------------------------------------------------
svn:mime-type = text/plain