You can see that there are a few issues in JIRA to make the IoC stuff (even) more refactoring-safe.
On Sun, May 4, 2008 at 11:06 PM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > Thank you Howard, > > It was a typo after a refactoring (DatabaseManager |-> > DatabaseUpdateManager). I didn't check the update textual occurences in > eclipse. > > > Lewis Ship schrieb: > > > > > The most common case for this is that the module class defining the > > service, or the module class containing the contribution to the > > service, is not being loaded. Please refer to the docs on how to > > ensure that modules are loaded. > > > > On Tue, Apr 29, 2008 at 2:10 AM, Michael Gerzabek > > <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > I've a Service that extends ApplicationInitializerFilter: > > > > > > public interface DatabaseUpdateManager extends > ApplicationInitializerFilter > > > { > > > > > > public void update() throws SQLException; > > > } > > > > > > I made it a service because I thought then it would be easy to collect > > > contributions from other modules. > > > > > > In my module I declare a bulder with > > > > > > public static DatabaseUpdateManager build( > > > final Logger logger, > > > final Collection<DatabaseModuleDef> contributions ) { > > > > > > return new DatabaseUpdateManagerImpl( logger, contributions ); > > > } > > > and contribute to the ApplicationInitializer with > > > > > > public static void contributeApplicationInitializer( > > > OrderedConfiguration<ApplicationInitializerFilter> > configuration, > > > final DatabaseUpdateManager manager ) { > > > > > > configuration.add( "DatabaseManager", manager ); > > > } > > > > > > Another module tries to contribute to this class with > > > > > > public static void contributeDatabaseManager( > > > Configuration<DatabaseModuleDef> configuration ) { > > > > > > System.out.println( "contributeDatabaseManager()"); > > > .. contributions .. > > > } > > > > > > But method contributeDatabaseManager(..) is never called. > > > > > > What am I missing? > > > > > > Thanks in advance > > > Michael > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]