blob: efcabc0731275165aff83d867100d546c052faae [file] [log] [blame]
/*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015 IBM Corporation. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// 02/02/2015-2.6.0 Dalia Abo Sheasha
// - 458462: generateSchema throws a ClassCastException within a container.
package org.eclipse.persistence.testing.models.jpa21.advanced.xml.ddl;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import org.eclipse.persistence.internal.jpa.deployment.SEPersistenceUnitInfo;
public class PUInfoInvocationHandler implements InvocationHandler {
private SEPersistenceUnitInfo sePUInfo;
public PUInfoInvocationHandler(SEPersistenceUnitInfo sePUInfo) {
this.sePUInfo = sePUInfo;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
return method.invoke(sePUInfo, args);
}
}