how customize ServiceBuilder?

thumbnail
mokhtar hatampoor, modified 5 Years ago. Junior Member Posts: 32 Join Date: 12/27/07 Recent Posts
hi
i want to customize ServiceBuilder in liferay 7.1 to auto generate some of feature , for example UI , ...
how can i create module and override methods for this  class.
i don't want detail for this generation. only i don't know how override this class and methods for writing my codes.
tanks.
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
mokhtar hatampoor:

i want to customize ServiceBuilder in liferay 7.1 to auto generate some of feature , for example UI , ...
how can i create module and override methods for this  class.
i don't want detail for this generation. only i don't know how override this class and methods for writing my codes.
I'm not sure what "this class" would be. And it can be as simple or as complex as you like - depending on automatic UI generation for 1:n, n:m relationships between entities etc.
XMLPortletFactory used to do something like this for an ancient version (if you're interested: A conversation on Radio Liferay Episode 32)
thumbnail
mokhtar hatampoor, modified 5 Years ago. Junior Member Posts: 32 Join Date: 12/27/07 Recent Posts
"this class" means "ServiceBuilder.java" .
my question is:
how i can override ServiceBuilder.java?
tanks
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
mokhtar hatampoor:

how i can override ServiceBuilder.java?
AFAIK it's not prepared to be extended, you'd basically write your own service builder (most likely by reusing some existing code). Another option to think about is to tap into the build process, run stock servicebuilder and add additional steps (for other files) on top of it. That'll probably be easier to maintain with future upgrades.