info.magnolia.module.samples
Class SamplesModule
java.lang.Object
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/items)
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)
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplesModule
public SamplesModule()
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<Dummy> getItems()
setItems
public void setItems(List<Dummy> 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–2014 Magnolia International Ltd.. All rights reserved.