package Ġorg . gob lin framework . management . server Ċ Ċ import Ġorg . gob lin framework . core . service . G ob lin Managed Bean Ċ import Ġorg . gob lin framework . core . service . G ob lin ManagedObject Ċ import Ġorg . gob lin framework . embedded . server . Embedded Server Id Ċ import Ġorg . gob lin framework . embedded . server . Embedded Server Manager Ċ import Ġorg . gob lin framework . embedded . server . Embedded Server Mode Ċ import Ġorg . gob lin framework . embedded . setting . Server Setting Ċ Ċ @ G ob lin Managed Bean ( type Ġ= Ġ" Management ") Ċ class ĠManagement Server Ġinternal Ġconstructor () ĊĠ Ġ: ĠG ob lin ManagedObject (), ĠManagement Server MX Bean Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġconst Ġval ĠSERVER _ NAME Ġ= Ġ" gob lin . management . server " ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġinitialize Bean () Ġ{ ĊĠĠĠ Ġval Ġsetting Ġ= ĠServer Setting . builder () ĊĠĠĠĠĠĠĠ Ġ. name ( SERVER _ NAME ) ĊĠĠĠĠĠĠĠ Ġ. mode ( Embedded Server Mode . JAVA ) ĊĠĠĠĠĠĠĠ Ġ. apply Handler Setting Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġit . context Path ("/") ĊĠĠĠĠĠĠĠĠĠ Ġit . servlet Handler ( Management Servlet Handler . INSTANCE ) ĊĠĠĠĠĠĠĠĠĠ Ġit . enable Compression ( true ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġval Ġserver Manager Ġ= ĠEmbedded Server Manager . INSTANCE ĊĠĠĠ Ġserver Manager . create Server ( setting ). start () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġdispose Bean () Ġ{ ĊĠĠĠ Ġval Ġserver Manager Ġ= ĠEmbedded Server Manager . INSTANCE ĊĠĠĠ Ġserver Manager . close Server ( Embedded Server Id ( Embedded Server Mode . JAVA , ĠSERVER _ NAME )) ĊĠ Ġ} Ċ }