Package com.peterphi.std.guice.apploader
Interface GuiceApplication
- All Known Implementing Classes:
GuiceRestApplication
,GuiceServlet
public interface GuiceApplication
A service that is registered with a
GuiceRegistry
for configuration and lifecycle
event injection.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a new Injector has been created, after Guice injection has been applied to this instance.void
stopping()
Called when an Injector is stopping and before the ShutdownManager for the GuiceRegistry is signalled
The GuiceRegistry will wait for this method to return before proceeding.
-
Method Details
-
configured
void configured()Called when a new Injector has been created, after Guice injection has been applied to this instance. No guarantees are made about the order in which GuiceApplication instances will be called -
stopping
void stopping()Called when an Injector is stopping and before the ShutdownManager for the GuiceRegistry is signalled
The GuiceRegistry will wait for this method to return before proceeding. No guarantees are made about the order in which GuiceApplication instances will be called
-