From c49ef2e2f243d623e59bcab018e4e9e4306e1cfd Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Thu, 8 Oct 2009 23:23:42 +0000 Subject: [PATCH] [HHH-4487] Restore versions of the old public API jbc2 package classes git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17662 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../cache/jbc2/JBossCacheRegionFactory.java | 69 +++++++++++++++++++ ...ndiMultiplexedJBossCacheRegionFactory.java | 58 ++++++++++++++++ .../JndiSharedJBossCacheRegionFactory.java | 58 ++++++++++++++++ .../MultiplexedJBossCacheRegionFactory.java | 57 +++++++++++++++ .../jbc2/SharedJBossCacheRegionFactory.java | 58 ++++++++++++++++ 5 files changed, 300 insertions(+) create mode 100755 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JBossCacheRegionFactory.java create mode 100644 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiMultiplexedJBossCacheRegionFactory.java create mode 100644 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiSharedJBossCacheRegionFactory.java create mode 100644 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.java create mode 100644 cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/SharedJBossCacheRegionFactory.java diff --git a/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JBossCacheRegionFactory.java b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JBossCacheRegionFactory.java new file mode 100755 index 0000000000..81212368ad --- /dev/null +++ b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JBossCacheRegionFactory.java @@ -0,0 +1,69 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2009, Red Hat, Inc. or third-party contributors as + * indicated by the @author tags or express copyright attribution + * statements applied by the authors.  All third-party contributions are + * distributed under license by Red Hat, Inc. + * + * This copyrighted material is made available to anyone wishing to use, modify, + * copy, or redistribute it subject to the terms and conditions of the GNU + * Lesser General Public License, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this distribution; if not, write to: + * Free Software Foundation, Inc. + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301 USA + */ +package org.hibernate.cache.jbc2; + +import java.util.Properties; + +import org.hibernate.cache.jbc.CacheInstanceManager; + +/** + * Deprecated version of superclass maintained solely for forwards + * compatibility. + * + * @deprecated use {@link org.hibernate.cache.jbc.JBossCacheRegionFactory} + * + * @author Steve Ebersole + * @author Brian Stansberry + */ +@Deprecated +public class JBossCacheRegionFactory extends org.hibernate.cache.jbc.JBossCacheRegionFactory { + + /** + * FIXME Per the RegionFactory class Javadoc, this constructor version + * should not be necessary. + * + * @param props The configuration properties + */ + public JBossCacheRegionFactory(Properties props) { + super(props); + } + + /** + * Create a new JBossCacheRegionFactory. + */ + public JBossCacheRegionFactory() { + super(); + } + + /** + * Create a new JBossCacheRegionFactory that uses the provided + * {@link CacheInstanceManager}. + * + * @param cacheInstanceManager The contract for how we get JBC cache instances. + */ + public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager) { + super(cacheInstanceManager); + } + +} diff --git a/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiMultiplexedJBossCacheRegionFactory.java b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiMultiplexedJBossCacheRegionFactory.java new file mode 100644 index 0000000000..42f91f2849 --- /dev/null +++ b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiMultiplexedJBossCacheRegionFactory.java @@ -0,0 +1,58 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2009, Red Hat, Inc. or third-party contributors as + * indicated by the @author tags or express copyright attribution + * statements applied by the authors.  All third-party contributions are + * distributed under license by Red Hat, Inc. + * + * This copyrighted material is made available to anyone wishing to use, modify, + * copy, or redistribute it subject to the terms and conditions of the GNU + * Lesser General Public License, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this distribution; if not, write to: + * Free Software Foundation, Inc. + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301 USA + */ +package org.hibernate.cache.jbc2; + +import java.util.Properties; + +/** + * Deprecated version of superclass maintained solely for forwards + * compatibility. + * + * @deprecated use {@link org.hibernate.cache.jbc.JndiMultiplexedJBossCacheRegionFactory} + * + * @author Brian Stansberry + * @version $Revision$ + */ +@Deprecated +public class JndiMultiplexedJBossCacheRegionFactory extends org.hibernate.cache.jbc.JndiMultiplexedJBossCacheRegionFactory { + + /** + * FIXME Per the RegionFactory class Javadoc, this constructor version + * should not be necessary. + * + * @param props The configuration properties + */ + public JndiMultiplexedJBossCacheRegionFactory(Properties props) { + super(props); + } + + /** + * Create a new MultiplexedJBossCacheRegionFactory. + * + */ + public JndiMultiplexedJBossCacheRegionFactory() { + super(); + } + +} diff --git a/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiSharedJBossCacheRegionFactory.java b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiSharedJBossCacheRegionFactory.java new file mode 100644 index 0000000000..7612ac12ea --- /dev/null +++ b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/JndiSharedJBossCacheRegionFactory.java @@ -0,0 +1,58 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2009, Red Hat, Inc. or third-party contributors as + * indicated by the @author tags or express copyright attribution + * statements applied by the authors.  All third-party contributions are + * distributed under license by Red Hat, Inc. + * + * This copyrighted material is made available to anyone wishing to use, modify, + * copy, or redistribute it subject to the terms and conditions of the GNU + * Lesser General Public License, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this distribution; if not, write to: + * Free Software Foundation, Inc. + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301 USA + */ +package org.hibernate.cache.jbc2; + +import java.util.Properties; + +/** + * Deprecated version of superclass maintained solely for forwards + * compatibility. + * + * @deprecated use {@link org.hibernate.cache.jbc.JndiSharedJBossCacheRegionFactory} + * + * @author Brian Stansberry + * @version $Revision$ + */ +@Deprecated +public class JndiSharedJBossCacheRegionFactory extends org.hibernate.cache.jbc.JndiSharedJBossCacheRegionFactory { + + /** + * FIXME Per the RegionFactory class Javadoc, this constructor version + * should not be necessary. + * + * @param props The configuration properties + */ + public JndiSharedJBossCacheRegionFactory(Properties props) { + super(props); + } + + /** + * Create a new JndiSharedJBossCacheRegionFactory. + * + */ + public JndiSharedJBossCacheRegionFactory() { + super(); + } + +} diff --git a/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.java b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.java new file mode 100644 index 0000000000..2285dbe1e7 --- /dev/null +++ b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.java @@ -0,0 +1,57 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2009, Red Hat, Inc. or third-party contributors as + * indicated by the @author tags or express copyright attribution + * statements applied by the authors.  All third-party contributions are + * distributed under license by Red Hat, Inc. + * + * This copyrighted material is made available to anyone wishing to use, modify, + * copy, or redistribute it subject to the terms and conditions of the GNU + * Lesser General Public License, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this distribution; if not, write to: + * Free Software Foundation, Inc. + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301 USA + */ +package org.hibernate.cache.jbc2; + +import java.util.Properties; + +/** + * Deprecated version of superclass maintained solely for forwards + * compatibility. + * + * @deprecated use {@link org.hibernate.cache.jbc.MultiplexedJBossCacheRegionFactory} + * + * @author Brian Stansberry + * @version $Revision$ + */ +public class MultiplexedJBossCacheRegionFactory extends org.hibernate.cache.jbc.MultiplexedJBossCacheRegionFactory { + + /** + * FIXME Per the RegionFactory class Javadoc, this constructor version + * should not be necessary. + * + * @param props The configuration properties + */ + public MultiplexedJBossCacheRegionFactory(Properties props) { + super(props); + } + + /** + * Create a new MultiplexedJBossCacheRegionFactory. + * + */ + public MultiplexedJBossCacheRegionFactory() { + super(); + } + +} diff --git a/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/SharedJBossCacheRegionFactory.java b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/SharedJBossCacheRegionFactory.java new file mode 100644 index 0000000000..89bb9a04ee --- /dev/null +++ b/cache-jbosscache/src/main/java/org/hibernate/cache/jbc2/SharedJBossCacheRegionFactory.java @@ -0,0 +1,58 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2009, Red Hat, Inc. or third-party contributors as + * indicated by the @author tags or express copyright attribution + * statements applied by the authors.  All third-party contributions are + * distributed under license by Red Hat, Inc. + * + * This copyrighted material is made available to anyone wishing to use, modify, + * copy, or redistribute it subject to the terms and conditions of the GNU + * Lesser General Public License, as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this distribution; if not, write to: + * Free Software Foundation, Inc. + * 51 Franklin Street, Fifth Floor + * Boston, MA 02110-1301 USA + */ +package org.hibernate.cache.jbc2; + +import java.util.Properties; + +/** + * Deprecated version of superclass maintained solely for forwards + * compatibility. + * + * @deprecated use {@link org.hibernate.cache.jbc.SharedJBossCacheRegionFactory} + * + * @author Brian Stansberry + * @version $Revision$ + */ +@Deprecated +public class SharedJBossCacheRegionFactory extends org.hibernate.cache.jbc.SharedJBossCacheRegionFactory { + + /** + * FIXME Per the RegionFactory class Javadoc, this constructor version + * should not be necessary. + * + * @param props The configuration properties + */ + public SharedJBossCacheRegionFactory(Properties props) { + super(props); + } + + /** + * Create a new SharedJBossCacheRegionFactory. + * + */ + public SharedJBossCacheRegionFactory() { + super(); + } + +}