Hello, You are right. I have initially coded: public interface DataService {... and public class DataServiceImpl implements DataService, RegistryShutdownListener {...
hence the typecast. Doing: public interface DataService extends RegistryShutdownListener {... and public class DataServiceImpl implements DataService {... eliminates the need for the typecast. Thanks for the learning experience. -- View this message in context: http://www.nabble.com/configuring-a-service-for-shutdown-notification-tp17959487p17996573.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]