info.magnolia.objectfactory
Class ComponentFactoryUtil
java.lang.Object
info.magnolia.objectfactory.ComponentFactoryUtil
public class ComponentFactoryUtil
- extends Object
Utility method to work with ComponentFactory
s.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentFactoryUtil
public ComponentFactoryUtil()
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-2012 Magnolia International Ltd.. All Rights Reserved.