info.magnolia.module.samples
Class SamplesModule

java.lang.Object
  extended by info.magnolia.module.samples.SamplesModule
All Implemented Interfaces:
ModuleLifecycle

public class SamplesModule
extends Object
implements ModuleLifecycle

This is the configuration class of the samples module, it can implement ModuleLifecycle it there are some tasks to perform when starting/stopping the module. This class is loaded with what you have defined in the configuration in modules/samples/config nodedata get loaded into class variables (modules/samples/config/propertySample) content into list object (modules/samples/config/sampleList) contentnode into map object (modules/samples/config/sampleMap) by using nodedata 'class' you can specify the class it will turn into (see in this sample the list of dummy clases we have created: modules/samples/config/sampleList/ each item is an instance of Dummy class)

Author:
tmiyar

Constructor Summary
SamplesModule()
           
 
Method Summary
 void addItem(Dummy dummy)
           
 List getItems()
           
 Map getSampleMap()
           
 String getSampleProperty()
           
 void setItems(List items)
           
 void setSampleMap(Map sampleMap)
           
 void setSampleProperty(String sampleProperty)
           
 void start(ModuleLifecycleContext moduleLifecycleContext)
           
 void stop(ModuleLifecycleContext moduleLifecycleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplesModule

public SamplesModule()
Method Detail

start

public void start(ModuleLifecycleContext moduleLifecycleContext)
Specified by:
start in interface ModuleLifecycle

stop

public void stop(ModuleLifecycleContext moduleLifecycleContext)
Specified by:
stop in interface ModuleLifecycle

getItems

public List getItems()

setItems

public void setItems(List items)

addItem

public void addItem(Dummy dummy)

getSampleMap

public Map getSampleMap()

setSampleMap

public void setSampleMap(Map sampleMap)

getSampleProperty

public String getSampleProperty()

setSampleProperty

public void setSampleProperty(String sampleProperty)


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