SmartLifecycle used in neo

Neo classes include a lot of start() and stop(). These are inherited from SmartLifecycle.java.

Compared to super-interface Lifecycle.java, SmartLifecycle interface provides more sophisticated integration with the container's startup and shutdown phases.

I think Neo uses this to implement a lot of “services”. IOC Container must be alive throughout.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s