How to use datacenter components in forge cloud development?

I want to know how to use a function similar to servlet filter in developing forge cloud,
and also how to specify the scope such as atl.general and atl.admin or how to extend other classes like java code.