Annotation Type | Description |
---|---|
AngularBean |
Declare a class as an AngularBean that will be proxied via an auto generated
AngularJS service.
|
NGApp |
Declare an NG Module
AngularBeans will generate a single
AngularJS Module "angularBeans"
but this annotaion is kept for possible futures
changes
|
NGModel |
Declare an angular bean property mapped as model
on the js proxy side
this is a property based annotation (on the getter)
this give the possibility to separate mapped properties
from internal java side concern properties
(properties non annotated with @NGModel will not be availables on
the angularJS service proxy)
|
NGModules |
Declare an NG dependency Module
the AngularJS Module "angularBeans"
can need some extra module dependencies
so this annotation declare a table of modules
names (ofc they need to be also added as
js dependencies).
|
NGPostConstruct |
first method to be called when initializing
the js proxy
when the angular service is created it will send a
HTTP GET request and AngularBeans will call the
annotated method.
|
NGReturn |
Specify main return mapped name
and models to update (back->front)
usage: { @NGReturn(model="",updates="")}
model: main return name
can be very useful with angularBeans.bind(..) method
to access the return without handling
the promise (with .then(..) at the JS side )
updates : beside the main return you can specify
an array of names of other front end models that
will be synchronized with
back ends models at the end of the method call
(with ' updates={"*"} ' all models will be updated)
work only with @NGModel annotated properties
|
NGSubmit |
specify
what other back end models will be synchronized
with front end models before the annotated method call
backEndModels: array of models names or
' backEndModels={"*"} ' to tell AngularBeans
that all the @NGModel annotated properties
of the back end bean will be updated.
|
Copyright © 2015. All rights reserved.