info.magnolia.objectfactory
Class ComponentFactoryUtil

java.lang.Object
  extended by info.magnolia.objectfactory.ComponentFactoryUtil

public class ComponentFactoryUtil
extends Object

Utility method to work with ComponentFactorys.


Constructor Summary
ComponentFactoryUtil()
           
 
Method Summary
static
<T> ComponentFactory<T>
createFactory(Class<? extends ComponentFactory<T>> factoryClass, ComponentProvider componentProvider)
          Uses the empty constructor or passes the ComponentProvider if such a constructor exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactoryUtil

public ComponentFactoryUtil()
Method Detail

createFactory

public static <T> ComponentFactory<T> createFactory(Class<? extends ComponentFactory<T>> factoryClass,
                                                    ComponentProvider componentProvider)
                                         throws IllegalArgumentException,
                                                InstantiationException,
                                                IllegalAccessException,
                                                InvocationTargetException
Uses the empty constructor or passes the ComponentProvider if such a constructor exists.

Throws:
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.