You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ti...@apache.org on 2010/03/01 13:27:16 UTC

svn commit: r917495 - in /incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing: ./ PersistenceDescriptorParser.java

Author: timothyjward
Date: Mon Mar  1 12:27:15 2010
New Revision: 917495

URL: http://svn.apache.org/viewvc?rev=917495&view=rev
Log:
ARIES-202 : Separate JPA injection from managed persistence contexts

Added:
    incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/
    incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/PersistenceDescriptorParser.java

Added: incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/PersistenceDescriptorParser.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/PersistenceDescriptorParser.java?rev=917495&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/PersistenceDescriptorParser.java (added)
+++ incubator/aries/trunk/jpa/jpa-api/src/main/java/org/apache/aries/jpa/container/parsing/PersistenceDescriptorParser.java Mon Mar  1 12:27:15 2010
@@ -0,0 +1,43 @@
+/**
+ * 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.aries.jpa.container.parsing;
+
+import java.util.Collection;
+
+import org.osgi.framework.Bundle;
+
+/**
+ * A utility service for parsing JPA persistence descriptors 
+ */
+public interface PersistenceDescriptorParser {
+
+  /**
+   * Parse the supplied {@link PersistenceDescriptor} 
+   * 
+   * @param b  The bundle that contains the persistence descriptor
+   * @param descriptor The descriptor
+   * 
+   * @return A collection of {@link ParsedPersistenceUnit}
+   * @throws PersistenceDescriptorParserException  if any error occurs in parsing
+   */
+  public abstract Collection<ParsedPersistenceUnit> parse(Bundle b,
+      PersistenceDescriptor descriptor)
+      throws PersistenceDescriptorParserException;
+
+}
\ No newline at end of file