You are on page 1of 14

Fiscal Framework

Fiscal Framework Concept

Fiscal Framework Architecture

Way of working

Fiscal systems

Previous fiscal solutions

Fiscal Framework

Components

fiscalintegration.jar - Facade plugin

fiscalframework.jar - Framework

xyzfiscalservice.jar - The unique fiscal


implementation

Component versioning

Spring wiring

FFW is based on Spring DI

Exactly one GenericFiscalService on cp

Naming conventions for configuration and


translations
Example can be found in
TemplateFiscalService

Details

GenericFiscalService

API

SPI

Library

Customization

GenericFiscalService

Make a GenericFiscalService Spring


Component
Can be based on AbstractFiscalService
Will be called by fiscalintegration on various
POS events
Override the methods where you want to hook
in fiscal functionality

API

Defined in GenericFiscalService
Defines methods that can/should be called by
any user of the Fiscal Framework
Try to not model it on std-java-pos/pos-facade
since we want to decouple the Fiscal
Framework from std-pos
Try to keep generic and not tied to any
FiscalService

SPI

Defined in GenericFiscalServiceClient
Defines methods that needs to be supplied by any
user of the Fiscal Framework
Can be used by any FiscalService
Try to not model it on std-java-pos/pos-facade since
we want to decouple the Fiscal Framework from stdpos
Try to keep generic and not tied to any FiscalService

Library

Contains shared functionality


Try to identify functionality that could be reused
and add to Library

Customization

All configuration and translation can be


customized.
Default configuration in
fiscalservice.default.properties on cp
Customized configuration in
fiscalservice.properties on cp
Translations work in progress

Documentation

Only JavaDoc at the moment


DevDoc should be added with guides and
examples
Cooperate, look at other implementations, ask
Kristian
Copy TemplateFiscalService when starting with
a new FiscalService

You might also like