public interface INanoPlugin
extends de.tsl2.nano.plugin.Plugin
Main.startApplication(NanoH5.class, null, args);Each method will be called with parameters, pre-filled and provided by the framework.
To enhance the the Html-Output, see IDOMDecorator.
| Modifier and Type | Method and Description |
|---|---|
void |
actionAfterHandler(de.tsl2.nano.action.IAction<?> action)
after running the requested user interaction, you can inspect the action that was called
|
void |
actionBeforeHandler(de.tsl2.nano.action.IAction<?> action)
before running the requested user interaction, you can inspect the action that will be called
|
void |
beansGenerated(de.tsl2.nano.persistence.Persistence persistence)
do some initializings on the jar-file. the jar-file-name is inside the persistence object
|
void |
configuration(SortedMap<Object,Object> properties,
Map<Class<?>,Object> services)
change the default properties of the application. see 'environment.xml' for a list of all keys and their defaults
|
void |
databaseGenerated(de.tsl2.nano.persistence.Persistence persistence)
do some initializings on the database. the connection-info is inside the persistence object
|
void |
defineBeanDefinition(de.tsl2.nano.bean.def.BeanDefinition<?> beanDef)
for each bean type (belonging to an entity class) the default handling can be changed. the output can be found at
the presentation directory
|
void |
definePersistence(de.tsl2.nano.persistence.Persistence persistence)
before an authentication, the properties for the jpa persistence.xml will be defined.
|
<PAGE,OUTPUT,T extends de.tsl2.nano.bean.def.IPageBuilder<PAGE,OUTPUT>> |
definePresentationType(T pageBuilder)
The Html page-builder defines the creation of each response. you must return an instance of pageBuilder (null
will result in errors)!
|
void |
exceptionHandler(Exception ex) |
void |
onAuthentication(de.tsl2.nano.serviceaccess.IAuthorization auth)
do some inspections on authentication.
|
void |
requestHandler(String uri,
NanoHTTPD.Method m,
Map<String,String> header,
Map<String,String> parms,
Map<String,String> files)
on each new http request, you can inspect and change the header, parameters and files
|
void |
workflowHandler(IBeanNavigator workflow)
on creating a new session, the workflow / navigation stack is defined by loading from 'workflow.xml' or if not
found by providing all entity beans in a list.
|
void configuration(SortedMap<Object,Object> properties, Map<Class<?>,Object> services)
void onAuthentication(de.tsl2.nano.serviceaccess.IAuthorization auth)
void definePersistence(de.tsl2.nano.persistence.Persistence persistence)
void databaseGenerated(de.tsl2.nano.persistence.Persistence persistence)
void beansGenerated(de.tsl2.nano.persistence.Persistence persistence)
<PAGE,OUTPUT,T extends de.tsl2.nano.bean.def.IPageBuilder<PAGE,OUTPUT>> T definePresentationType(T pageBuilder)
void defineBeanDefinition(de.tsl2.nano.bean.def.BeanDefinition<?> beanDef)
void actionBeforeHandler(de.tsl2.nano.action.IAction<?> action)
void actionAfterHandler(de.tsl2.nano.action.IAction<?> action)
void workflowHandler(IBeanNavigator workflow)
void exceptionHandler(Exception ex)
Copyright © 2012–2020. All rights reserved.