org.jboss.cache.factories
Class EmptyConstructorFactory

java.lang.Object
  extended by org.jboss.cache.factories.ComponentFactory
      extended by org.jboss.cache.factories.EmptyConstructorFactory
Direct Known Subclasses:
BuddyManagerFactory, LockManagerFactory, ReplicationQueueFactory, RuntimeConfigAwareFactory

public class EmptyConstructorFactory
extends ComponentFactory

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

Since:
2.1.0
Author:
Manik Surtani (manik AT jboss DOT org)

Field Summary
 
Fields inherited from class org.jboss.cache.factories.ComponentFactory
componentRegistry, configuration, log
 
Constructor Summary
EmptyConstructorFactory()
           
 
Method Summary
protected
<T> T
construct(Class<T> componentType)
          Constructs a component.
 
Methods inherited from class org.jboss.cache.factories.ComponentFactory
assertTypeConstructable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyConstructorFactory

public EmptyConstructorFactory()
Method Detail

construct

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

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


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