info.magnolia.objectfactory
Interface ComponentFactory<T>

Type Parameters:
T - the type of component this factory instantiates.
All Known Subinterfaces:
FactoryUtil.InstanceFactory
All Known Implementing Classes:
FactoryUtil.ObservedObjectFactory, IPSecurityManagerImpl.InstanceFactory, ObservedComponentFactory, ServerConfiguration.InstanceFactory

public interface ComponentFactory<T>

Implementations of ComponentFactory provide their own instantiation mechanisms. Implementations could for instance get constructor parameters from some well-known place, or call an initialization method, etc. ComponentFactory implementations can be registered in place of the component they're instantiating. (i.e using the same key)

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
ComponentProvider.newInstance(Class), ComponentProvider.getSingleton(Class), DefaultComponentProvider.setInstanceFactory(Class, ComponentFactory)

Method Summary
 T newInstance()
           
 

Method Detail

newInstance

T newInstance()


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