Package com.day.cq.mcm.api
Class MCMPluginAdapter
java.lang.Object
com.day.cq.mcm.api.MCMPluginAdapter
- All Implemented Interfaces:
MCMPlugin
Helps when implementing
MCMPlugin.
Provides the root component functionality with a list of components manageable
via addExperienceComponent(String, Factory) and addTouchpointComponent(String, Factory).
You can also add only one (Experience or touchpoint), or many.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the comptypes that were registered withaddExperienceComponent(String, Factory).Returns the comptypes that were registered withaddTouchpointComponent(String, Factory).makeExperience(Resource adaptable) Should try it's best to make an experience out of the adaptable.makeTouchpoint(Resource adaptable) Should try it's best to make an experience out of the adaptable.toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.day.cq.mcm.api.MCMPlugin
findReferencedTouchpoints, getPluginId
-
Constructor Details
-
MCMPluginAdapter
public MCMPluginAdapter()
-
-
Method Details
-
getTouchpointRootComponents
Returns the comptypes that were registered withaddTouchpointComponent(String, Factory).- Specified by:
getTouchpointRootComponentsin interfaceMCMPlugin
-
getExperienceRootComponents
Returns the comptypes that were registered withaddExperienceComponent(String, Factory).- Specified by:
getExperienceRootComponentsin interfaceMCMPlugin
-
makeExperience
Description copied from interface:MCMPluginShould try it's best to make an experience out of the adaptable. Should not check for the component type, because component types might be subtyped and AdapterFactory can be configured to deal with that by setting up indirection via setting up a configuration:com.day.cq.mcm.impl.MCMConfiguration-exampleconfigwith a property setting of:- Specified by:
makeExperiencein interfaceMCMPlugin- Parameters:
adaptable-- Returns:
-
makeTouchpoint
Description copied from interface:MCMPluginShould try it's best to make an experience out of the adaptable. Should not check for the component type, because component types might be subtyped and AdapterFactory can be configured to deal with that by setting up indirection via configuration of a- Specified by:
makeTouchpointin interfaceMCMPlugin- Parameters:
adaptable-- Returns:
-
toString
-