Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Extension points is mechanism introduced in version 

Label
Body3.5.0+
 in order to allow for better modularisation and separation of custom code from core YC platform's functions. The crux of the approach is provision of standard hooks that can be used to add or reconfigure core functionality without modification of the core code.

...

Persistence

 

Persistence is handled in YC using Hibernate, which is configured though hibernate configuration files. There files are provided as lists of names to the hibernate factory bean. Extending the mapping resources list allow to plug in additional mapping files that can include additional table mapping and/or queries.

...

ModuleExtension pointKey pointsVersion
store-wicket wicket.xmlwicket-ext.xml

Wicket specific app extensions:
wicketPagesMapping wicket URI to pages mapping (extend using LinkedHashMapBean)
wicketPagesEncoderEnabledUrls wicket URI list of SEO supported encoder pages (extend using ArrayListBean)
wicketResourceMounterEnabledPatterns wicket resource mounter enabled patterns (extend using ArrayListBean)
wicketResourcesMapping wicket IResources mapping (extend using LinkedHashMapBean)
wicketRendererPanelMap wicket central panel view mapping (extend using LinkedHashMapBean)
wicketCategoryTypeMap wicket category central view type mapping (extend using LinkedHashMapBean)

3.5.0+
store-wicketapplicationContext.xmlsfw-applicationContext-ext.xmlapplication listener context specific extension3.5.0+

Groovy storefront app 
Label
Body

...

SaaS
Colourinfo

 

ModuleExtension pointKey pointsVersion
store-groovy groovy.xmlgroovy-ext.xml

Groovy MO (view model) layer beans extension. Additionally exposes mapping extension points:
moInterfaceToClassFactoryMapping mapping for MO (extend using LinkedHashMapBean)
moAssemblerAdaptersRepositoryMapping mapping for MO adapters (extend using LinkedHashMapBean)

3.5.0+
store-groovy groovy-mvc.xmlgroovy-mvc-ext.xml

Groovy specific app extensions:
groovyRendererPanelMap groovy central panel view mapping (extend using LinkedHashMapBean)
groovyCategoryTypeMap groovy category central view type mapping (extend using LinkedHashMapBean)

3.5.0+
store-groovy rest-mvc.xmlrest-mvc-ext.xmlGroovy REST API context specific extension3.5.0+
store-groovyapplicationContext.xmlsfg-applicationContext-ext.xmlapplication listener context specific extension3.5.0+
store-groovy groovy-servlet.xmlsfg-servlet-ext.xmlservlet context specific extension3.5.0+
store-groovy@Controller

Scanner packages:
org.yes.cart.web.service.mixin
org.yes.cart.web.service.groovy

3.5.0+
store-groovy rest-servlet.xmlsfg-rest-servlet-ext.xmlservlet context specific extension3.5.0+
store-groovy@Controller

Scanner packages:
org.yes.cart.web.service.mixin
org.yes.cart.web.service.rest

3.5.0+

...