// Path: spi/src/main/java/org/jboss/as/jpa/spi/ManagementAdaptor.java
// @Deprecated
// public interface ManagementAdaptor extends org.jipijapa.plugin.spi.ManagementAdaptor {
// 
// }
// 
// Path: spi/src/main/java/org/jipijapa/management/spi/Statistics.java
// public interface Statistics {
// 
// 
//     /**
//      * Get the statistics names
//      *
//      * @return The value
//      */
//     Set<String> getNames();
// 
//     Collection<String> getDynamicChildrenNames(EntityManagerFactoryAccess entityManagerFactoryAccess, PathAddress pathAddress);
// 
//     /**
//      * Get the type
//      *
//      * @param name of the statistic
//      * @return The value
//      */
//     Class getType(String name);
// 
//     /**
//      * return true if the specified name represents an operation.
//      *
//      * @param name of the statistic
//      * @return
//      */
//     boolean isOperation(String name);
// 
//     /**
//      * return true if the specified name represents an attribute.
//      *
//      * @param name of the statistic
//      * @return
//      */
//     boolean isAttribute(String name);
// 
//     /**
//      * return true if the specified name represents a writeable attribute
//      * @param name of the statistics
//      * @return
//      */
//     boolean isWriteable(String name);
// 
//     /**
//      * for loading descriptions of statistics/operations
//      *
//      * @return name of resource bundle name
//      */
//     String getResourceBundleName();
// 
//     /**
//      * gets the key prefix for referencing descriptions of statistics/operations
//      *
//      * @return
//      */
//     String getResourceBundleKeyPrefix();
// 
//     /**
//      * Get the value of the statistics
//      *
//      * @param name The name of the statistics
//      * @return The value
//      */
//     Object getValue(String name, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress);
// 
//     /**
//      * Set the value of the statistic (isWriteable must return true)
//      * @param name
//      * @param newValue
//      */
//     void setValue(String name, Object newValue, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress);
// 
//     /**
//      * get the names of the children statistic levels (if any)
//      * @return set of names
//      */
//     Set<String> getChildrenNames();
// 
//     /**
//      * get the specified children statistics
//      * @param childName name of the statistics to return
//      * @return
//      */
//     Statistics getChild(String childName);
// 
// 
// }


import org.jboss.as.jpa.spi.ManagementAdaptor;
import org.jipijapa.management.spi.Statistics;
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2013, Red Hat Middleware LLC, and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * 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.
 */

package org.jboss.as.jpa.hibernate4.management;


/**
 * Contains management support for Hibernate
 *
 * @author Scott Marlow
 */
public class HibernateManagementAdaptor implements ManagementAdaptor {

    // shared (per classloader) instance for all Hibernate 4.1 JPA deployments
    private static final HibernateManagementAdaptor INSTANCE = new HibernateManagementAdaptor();

    private final Statistics statistics = new HibernateStatistics();

    private static final String PROVIDER_LABEL = "hibernate-persistence-unit";
    private static final String VERSION = "Hibernate ORM 4.1.x";

    /**
     * The management statistics are shared across all Hibernate 4 JPA deployments
     * @return shared instance for all Hibernate 4 JPA deployments
     */
    public static HibernateManagementAdaptor getInstance() {
// Path: spi/src/main/java/org/jboss/as/jpa/spi/ManagementAdaptor.java
// @Deprecated
// public interface ManagementAdaptor extends org.jipijapa.plugin.spi.ManagementAdaptor {
// 
// }
// 
// Path: spi/src/main/java/org/jipijapa/management/spi/Statistics.java
// public interface Statistics {
// 
// 
//     /**
//      * Get the statistics names
//      *
//      * @return The value
//      */
//     Set<String> getNames();
// 
//     Collection<String> getDynamicChildrenNames(EntityManagerFactoryAccess entityManagerFactoryAccess, PathAddress pathAddress);
// 
//     /**
//      * Get the type
//      *
//      * @param name of the statistic
//      * @return The value
//      */
//     Class getType(String name);
// 
//     /**
//      * return true if the specified name represents an operation.
//      *
//      * @param name of the statistic
//      * @return
//      */
//     boolean isOperation(String name);
// 
//     /**
//      * return true if the specified name represents an attribute.
//      *
//      * @param name of the statistic
//      * @return
//      */
//     boolean isAttribute(String name);
// 
//     /**
//      * return true if the specified name represents a writeable attribute
//      * @param name of the statistics
//      * @return
//      */
//     boolean isWriteable(String name);
// 
//     /**
//      * for loading descriptions of statistics/operations
//      *
//      * @return name of resource bundle name
//      */
//     String getResourceBundleName();
// 
//     /**
//      * gets the key prefix for referencing descriptions of statistics/operations
//      *
//      * @return
//      */
//     String getResourceBundleKeyPrefix();
// 
//     /**
//      * Get the value of the statistics
//      *
//      * @param name The name of the statistics
//      * @return The value
//      */
//     Object getValue(String name, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress);
// 
//     /**
//      * Set the value of the statistic (isWriteable must return true)
//      * @param name
//      * @param newValue
//      */
//     void setValue(String name, Object newValue, EntityManagerFactoryAccess entityManagerFactoryAccess, StatisticName statisticName, PathAddress pathAddress);
// 
//     /**
//      * get the names of the children statistic levels (if any)
//      * @return set of names
//      */
//     Set<String> getChildrenNames();
// 
//     /**
//      * get the specified children statistics
//      * @param childName name of the statistics to return
//      * @return
//      */
//     Statistics getChild(String childName);
// 
// 
// }


// Path: hibernate4_1/src/main/java/org/jboss/as/jpa/hibernate4/management/HibernateManagementAdaptor.java
import org.jboss.as.jpa.spi.ManagementAdaptor;
import org.jipijapa.management.spi.Statistics;

/*
 * JBoss, Home of Professional Open Source
 * Copyright 2013, Red Hat Middleware LLC, and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * 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.
 */

package org.jboss.as.jpa.hibernate4.management;


/**
 * Contains management support for Hibernate
 *
 * @author Scott Marlow
 */
public class HibernateManagementAdaptor implements ManagementAdaptor {

    // shared (per classloader) instance for all Hibernate 4.1 JPA deployments
    private static final HibernateManagementAdaptor INSTANCE = new HibernateManagementAdaptor();

    private final Statistics statistics = new HibernateStatistics();

    private static final String PROVIDER_LABEL = "hibernate-persistence-unit";
    private static final String VERSION = "Hibernate ORM 4.1.x";

    /**
     * The management statistics are shared across all Hibernate 4 JPA deployments
     * @return shared instance for all Hibernate 4 JPA deployments
     */
    public static HibernateManagementAdaptor getInstance() {
        return INSTANCE;