11.07.2015 Views

Thesis full text PDF (in Italian) - Politecnico di Milano

Thesis full text PDF (in Italian) - Politecnico di Milano

Thesis full text PDF (in Italian) - Politecnico di Milano

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.8 Classes packages A UML <strong>di</strong>agram, that shows the default package of the application developed, ispresented <strong>in</strong> figure 23. It def<strong>in</strong>es packages conta<strong>in</strong><strong>in</strong>g def<strong>in</strong>itions for all utilityclasses and servlets that compose the core of the application.Figure 23 – Application’s packages structureAlthough it does not <strong>di</strong>rectly def<strong>in</strong>e any classes, nested sub-packages called“social” and “configs”, are def<strong>in</strong>ed with<strong>in</strong> the scope.Inside the package “configs”, there is a class called “ConfigProperties”provid<strong>in</strong>g, to classes of others packages (see image), connections <strong>in</strong>formationrelated to the database or to social networks, stored <strong>in</strong>to the file“application.properties”.The package “social”, does not def<strong>in</strong>e any class but, it conta<strong>in</strong>s a sub-packagecalled “util” <strong>in</strong> which important servlet, like “SocialUserDataValidation”,responsible to validate the social ids of a new users and,“SocialApplicationCon<strong>text</strong>Listener”, that <strong>in</strong>itialized the connections to the socialnetworks, are def<strong>in</strong>ed.66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!