Package org.jpox.enhancer.jdo.bcel

Source Code of org.jpox.enhancer.jdo.bcel.TestA18_4_4

/**********************************************************************
Copyright (c) 2007 Andy Jefferson and others. All rights reserved.
Licensed 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.

Contributors:
    ...
**********************************************************************/
package org.jpox.enhancer.jdo.bcel;

import org.jpox.JDOClassLoaderResolver;
import org.jpox.enhancer.ClassEnhancer;
import org.jpox.enhancer.bcel.BCELClassEnhancer;
import org.jpox.enhancer.bcel.metadata.BCELMetaDataFactory;
import org.jpox.metadata.ClassMetaData;
import org.jpox.metadata.MetaDataFactory;
import org.jpox.metadata.MetaDataManager;

/**
*
* @version $Revision: 1.1 $
*/
public class TestA18_4_4 extends org.jpox.enhancer.jdo.TestA18_4_4
{
    /**
     * Accessor for a MetaDataFactory to use when enhancing.
     * @param mgr MetaDataManager
     * @return The MetaData factory
     */
    public MetaDataFactory getMetaDataFactory(MetaDataManager mgr)
    {
        return new BCELMetaDataFactory(mgr);
    }

    /**
     * Accessor for a ClassEnhancer to use in enhancing.
     * @param cmd ClassMetaData.
     * @return The ClassEnhancer for this class
     */
    public ClassEnhancer getClassEnhancer(ClassMetaData cmd)
    {
        return new BCELClassEnhancer(cmd, new JDOClassLoaderResolver());
    }
}
TOP

Related Classes of org.jpox.enhancer.jdo.bcel.TestA18_4_4

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.