Is "Application.get()" really a method? (In Book of Vaadin)

What is up with this line of code from The Book of Vaadin?

if (RapidApplication.get().getUser() == null) {

…from
this page
in section 14.7 Authentication and Authorization.

It suggests to me that the Application class has a “get()” method, but I cannot find any such method in
the doc
.

Hi Basil,

Application class has no get method.

Looking at the source for this exemple (
RapidApplication source
) tell you the answer.

Regards.

As pointed out, get() is a method for thread local variables. Beware that if you are using threads you want InheritableThreadLocal.

It’s a change of subject, so I posted a new thread, but wanted to share
a question about thread locals here
.

Cheers,
Bobby