org.hippoecm.hst.site.addon.module.runtime
Class ModuleInstanceImpl

java.lang.Object
  extended by org.hippoecm.hst.site.addon.module.runtime.ModuleInstanceImpl
All Implemented Interfaces:
ModuleInstance, ComponentManagerAware, org.springframework.context.ApplicationContextAware

public class ModuleInstanceImpl
extends Object
implements ModuleInstance, ComponentManagerAware, org.springframework.context.ApplicationContextAware


Constructor Summary
ModuleInstanceImpl(ModuleDefinition moduleDefinition)
           
ModuleInstanceImpl(ModuleDefinition moduleDefinition, String[] namePrefixes)
           
 
Method Summary
 void close()
           
<T> T
getComponent(String name)
           
<T> Map<String,T>
getComponentsOfType(Class<T> requiredType)
           
 String getFullName()
           
 ModuleInstance getModuleInstance(String name)
           
 List<ModuleInstance> getModuleInstances()
           
 String getName()
           
 void initialize()
           
 void setApplicationContext(org.springframework.context.ApplicationContext parentApplicationContext)
           
 void setComponentManager(ComponentManager componentManager)
          Sets the component manager
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleInstanceImpl

public ModuleInstanceImpl(ModuleDefinition moduleDefinition)

ModuleInstanceImpl

public ModuleInstanceImpl(ModuleDefinition moduleDefinition,
                          String[] namePrefixes)
Method Detail

getName

public String getName()
Specified by:
getName in interface ModuleInstance

getFullName

public String getFullName()
Specified by:
getFullName in interface ModuleInstance

setComponentManager

public void setComponentManager(ComponentManager componentManager)
Description copied from interface: ComponentManagerAware
Sets the component manager

Specified by:
setComponentManager in interface ComponentManagerAware

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext parentApplicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

initialize

public void initialize()
Specified by:
initialize in interface ModuleInstance

start

public void start()
Specified by:
start in interface ModuleInstance

stop

public void stop()
Specified by:
stop in interface ModuleInstance

close

public void close()
Specified by:
close in interface ModuleInstance

getComponent

public <T> T getComponent(String name)
Specified by:
getComponent in interface ModuleInstance

getComponentsOfType

public <T> Map<String,T> getComponentsOfType(Class<T> requiredType)
Specified by:
getComponentsOfType in interface ModuleInstance

getModuleInstances

public List<ModuleInstance> getModuleInstances()
Specified by:
getModuleInstances in interface ModuleInstance

getModuleInstance

public ModuleInstance getModuleInstance(String name)
Specified by:
getModuleInstance in interface ModuleInstance


Copyright © 2008-2012 Hippo. All Rights Reserved.