org.apache.hadoop.hbase
Class CompatibilitySingletonFactory

java.lang.Object
  extended by org.apache.hadoop.hbase.CompatibilityFactory
      extended by org.apache.hadoop.hbase.CompatibilitySingletonFactory

public class CompatibilitySingletonFactory
extends CompatibilityFactory

Factory for classes supplied by hadoop compatibility modules. Only one of each class will be created.


Nested Class Summary
static class CompatibilitySingletonFactory.SingletonStorage
           
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.CompatibilityFactory
EXCEPTION_END, EXCEPTION_START
 
Constructor Summary
protected CompatibilitySingletonFactory()
          This is a static only class don't let anyone create an instance.
 
Method Summary
static
<T> T
getInstance(Class<T> klass)
          Get the singleton instance of Any classes defined by compatibiliy jar's
 
Methods inherited from class org.apache.hadoop.hbase.CompatibilityFactory
createExceptionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompatibilitySingletonFactory

protected CompatibilitySingletonFactory()
This is a static only class don't let anyone create an instance.

Method Detail

getInstance

public static <T> T getInstance(Class<T> klass)
Get the singleton instance of Any classes defined by compatibiliy jar's

Returns:
the singleton


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.