org.hippoecm.hst.core.container
Class HstComponentFactoryImpl

java.lang.Object
  extended by org.hippoecm.hst.core.container.HstComponentFactoryImpl
All Implemented Interfaces:
HstComponentFactory

public class HstComponentFactoryImpl
extends Object
implements HstComponentFactory

HstComponentFactoryImpl

Version:
$Id: HstComponentFactoryImpl.java 35666 2012-08-09 07:55:08Z aschrijvers $

Field Summary
protected  HstComponentRegistry componentRegistry
           
protected  Class<?> defaultHstComponentClass
           
protected  String defaultHstComponentClassName
           
 
Constructor Summary
HstComponentFactoryImpl(HstComponentRegistry componentRegistry)
           
 
Method Summary
 HstComponent getComponentInstance(HstContainerConfig requestContainerConfig, HstComponentConfiguration compConfig, Mount mount)
          Returns the HstComponent instance from the HstComponent context.
 Class<?> getDefaultHstComponentClass()
           
 String getDefaultHstComponentClassName()
          Returns the default HST Component class name
<T> T
getObjectInstance(HstContainerConfig requestContainerConfig, String className)
          Returns arbitrary object instance from the HstComponent context.
 void setDefaultHstComponentClass(Class<?> defaultHstComponentClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentRegistry

protected HstComponentRegistry componentRegistry

defaultHstComponentClass

protected Class<?> defaultHstComponentClass

defaultHstComponentClassName

protected String defaultHstComponentClassName
Constructor Detail

HstComponentFactoryImpl

public HstComponentFactoryImpl(HstComponentRegistry componentRegistry)
Method Detail

getDefaultHstComponentClassName

public String getDefaultHstComponentClassName()
Description copied from interface: HstComponentFactory
Returns the default HST Component class name

Specified by:
getDefaultHstComponentClassName in interface HstComponentFactory
Returns:

getDefaultHstComponentClass

public Class<?> getDefaultHstComponentClass()

setDefaultHstComponentClass

public void setDefaultHstComponentClass(Class<?> defaultHstComponentClass)

getComponentInstance

public HstComponent getComponentInstance(HstContainerConfig requestContainerConfig,
                                         HstComponentConfiguration compConfig,
                                         Mount mount)
                                  throws HstComponentException
Description copied from interface: HstComponentFactory
Returns the HstComponent instance from the HstComponent context.

Specified by:
getComponentInstance in interface HstComponentFactory
Parameters:
requestContainerConfig - the HstContainer configuration
compConfig - the HstComponent configuration
mount - the Mount to create the component instance for
Returns:
the instance of the HstComponent
Throws:
HstComponentException

getObjectInstance

public <T> T getObjectInstance(HstContainerConfig requestContainerConfig,
                               String className)
                    throws HstComponentException
Description copied from interface: HstComponentFactory
Returns arbitrary object instance from the HstComponent context.

Specified by:
getObjectInstance in interface HstComponentFactory
Returns:
Throws:
HstComponentException


Copyright © 2008-2012 Hippo. All Rights Reserved.