org.infinispan.factories
Class EmptyConstructorNamedCacheFactory

java.lang.Object
  extended by org.infinispan.factories.AbstractComponentFactory
      extended by org.infinispan.factories.AbstractNamedCacheComponentFactory
          extended by org.infinispan.factories.EmptyConstructorNamedCacheFactory
All Implemented Interfaces:
AutoInstantiableFactory
Direct Known Subclasses:
ReplicationQueueFactory, RpcManagerFactory

public class EmptyConstructorNamedCacheFactory
extends AbstractNamedCacheComponentFactory
implements AutoInstantiableFactory

Simple factory that just uses reflection and an empty constructor of the component type.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

Field Summary
 
Fields inherited from class org.infinispan.factories.AbstractNamedCacheComponentFactory
componentRegistry, configuration
 
Fields inherited from class org.infinispan.factories.AbstractComponentFactory
globalComponentRegistry, globalConfiguration, log
 
Constructor Summary
EmptyConstructorNamedCacheFactory()
           
 
Method Summary
<T> T
construct(Class<T> componentType)
          Constructs a component.
 
Methods inherited from class org.infinispan.factories.AbstractComponentFactory
assertTypeConstructable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyConstructorNamedCacheFactory

public EmptyConstructorNamedCacheFactory()
Method Detail

construct

public <T> T construct(Class<T> componentType)
Description copied from class: AbstractComponentFactory
Constructs a component.

Specified by:
construct in class AbstractComponentFactory
Parameters:
componentType - type of component
Returns:
a component

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.