This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag 
org.apache.sling.commons.classloader-0.9.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-classloader.git

commit a2ba64aa4f0828db3e4e281fca0bae327579acb3
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Fri Jul 17 06:16:52 2009 +0000

    Experimental class loader writer for scripting engines.
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/classloader@794977 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../commons/classloader/ClassLoaderWriter.java     | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/commons/classloader/ClassLoaderWriter.java 
b/src/main/java/org/apache/sling/commons/classloader/ClassLoaderWriter.java
new file mode 100644
index 0000000..b39b746
--- /dev/null
+++ b/src/main/java/org/apache/sling/commons/classloader/ClassLoaderWriter.java
@@ -0,0 +1,42 @@
+/*
+ * 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;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+/**
+ * The class loader writer allows to modify the resources loaded by a
+ * {@link DynamicClassLoaderProvider}. For example a class loader writer
+ * could write generated class files into the repository or the temporary
+ * file system.
+ */
+public interface ClassLoaderWriter {
+
+    OutputStream getOutputStream(String name);
+
+    InputStream getInputStream(String name) throws IOException;
+
+    long getLastModified(String name);
+
+    boolean delete(String name);
+
+    boolean rename(String oldName, String newName);
+}

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to