简体   繁体   中英

Restrict return classes in Apache CXF

Is it possible to make sure that CXF will not release a class? I am fairly sure that my program wont at present but would want to be certain.

Basically I have a User class that is used a lot around the internal server side but whenever it is released to the client side I want to only release a CleanUser class object.

I am happy with a runtime error but would obviously prefer compile time!

  1. Use only DTOs in WS layer.

  2. Prefer contract first (from WSDL) development.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM