This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.commons.classloader-1.2.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-classloader.git
commit 0944f2a03c62c5ec781fd814209033606ecab8b2 Author: Carsten Ziegeler <[email protected]> AuthorDate: Tue Aug 10 10:07:04 2010 +0000 SLING-1636 : Provide a mechanism to detect if a dynamic classloader is still valid git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/classloader@983910 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 2 +- .../commons/classloader/DynamicClassLoader.java | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8f21cad..ccb418f 100644 --- a/pom.xml +++ b/pom.xml @@ -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 diff --git a/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java b/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java new file mode 100644 index 0000000..2a9389e --- /dev/null +++ b/src/main/java/org/apache/sling/commons/classloader/DynamicClassLoader.java @@ -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(); +} -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
