info.magnolia.objectfactory
Class ConfiguredComponentFactory<T>

java.lang.Object
  extended by info.magnolia.objectfactory.ConfiguredComponentFactory<T>
Type Parameters:
T - the components type
All Implemented Interfaces:
ComponentFactory<T>

public class ConfiguredComponentFactory<T>
extends Object
implements ComponentFactory<T>

Builds a component configured in the repository by using content2bean.

Version:
$Id$

Constructor Summary
ConfiguredComponentFactory(String path, String workspace, ComponentProvider componentProvider)
           
 
Method Summary
 T newInstance()
          Called by the ComponentProvider to create a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredComponentFactory

public ConfiguredComponentFactory(String path,
                                  String workspace,
                                  ComponentProvider componentProvider)
Method Detail

newInstance

public T newInstance()
Description copied from interface: ComponentFactory
Called by the ComponentProvider to create a component. This will only be done once and hence instances created by component factories are effectively singletons.

Specified by:
newInstance in interface ComponentFactory<T>


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