Hello,

is there some established opinion/best practice on how to provide some sort of startup/shutdown hooks to your Moose class?
What I basically want is something like:

package MyClass;
use TheGreatClass;

sub onStart {
}

sub onEnd {
]

in application:

use MyClass;

MyClass->new->run;


Something akin to what Test::Class does, but possibly without the sub attributes.

Reply via email to