Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4BB8A200B81 for ; Tue, 13 Sep 2016 19:29:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4A427160AD2; Tue, 13 Sep 2016 17:29:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8FE9B160AAA for ; Tue, 13 Sep 2016 19:29:07 +0200 (CEST) Received: (qmail 32011 invoked by uid 500); 13 Sep 2016 17:29:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 32002 invoked by uid 99); 13 Sep 2016 17:29:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2016 17:29:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 438F5C1506 for ; Tue, 13 Sep 2016 17:29:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jQUn5XHHSVHm for ; Tue, 13 Sep 2016 17:29:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9FC4060E0F for ; Tue, 13 Sep 2016 17:29:04 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 75E29E7690 for ; Tue, 13 Sep 2016 17:29:03 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 0AFE33A17FF for ; Tue, 13 Sep 2016 17:29:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1760580 [3/5] - in /openjpa/branches/fb-3.0-asm: openjpa-examples/openbooks/ openjpa-kernel/src/main/java/org/apache/openjpa/ant/ openjpa-kernel/src/main/java/org/apache/openjpa/conf/ openjpa-kernel/src/main/java/org/apache/openjpa/enhance... Date: Tue, 13 Sep 2016 17:29:02 -0000 To: commits@openjpa.apache.org From: struberg@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160913172903.0AFE33A17FF@svn01-us-west.apache.org> archived-at: Tue, 13 Sep 2016 17:29:08 -0000 Added: openjpa/branches/fb-3.0-asm/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancerImplSerp.java URL: http://svn.apache.org/viewvc/openjpa/branches/fb-3.0-asm/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancerImplSerp.java?rev=1760580&view=auto ============================================================================== --- openjpa/branches/fb-3.0-asm/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancerImplSerp.java (added) +++ openjpa/branches/fb-3.0-asm/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancerImplSerp.java Tue Sep 13 17:29:01 2016 @@ -0,0 +1,57 @@ +/* + * 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.openjpa.enhance; + +import org.apache.openjpa.conf.OpenJPAConfiguration; + +import java.io.IOException; + + +/** + */ +public class PCEnhancerImplSerp extends PCEnhancer { + private final OpenJPAConfiguration conf; + + public PCEnhancerImplSerp(OpenJPAConfiguration conf) { + this.conf = conf; + } + + @Override + public int getEnhancerVersion() { + return PCEnhancerSerp.ENHANCER_VERSION; + } + + @Override + public boolean checkEnhancementLevel(Class cls) { + return PCEnhancerSerp.checkEnhancementLevel(cls, conf.getLog(OpenJPAConfiguration.LOG_RUNTIME)); + } + + @Override + public boolean enhanceFiles(String[] files, Flags flags, ClassLoader cl) throws IOException { + return PCEnhancerSerp.run(conf, files, flags, null, flags.byteCodeWriter, cl); + } + + @Override + public boolean isPCSubclassName(String className) { + return PCEnhancerSerp.isPCSubclassName(className); + } + + @Override + public String toManagedTypeName(String className) { + return PCEnhancerSerp.toManagedTypeName(className); + } +} Propchange: openjpa/branches/fb-3.0-asm/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancerImplSerp.java ------------------------------------------------------------------------------ svn:eol-style = native