--- Eran Levy <
mceranlevy@...> wrote:
> Hello,
> I've a LoginModule and some additional components which have to be initiated
> before the rest of the modules in the Suite.
> Can you recommend me a way to init a module before the rest? or can I
> specify dependencies between the modules?
>
Eran,
You can either make the modules dependent on the Login module directly or you can use
OpenIDE-Module-Provides
and
OpenIDE-Module-Requires
to provide coupling less versioning. See:
http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html#how-versfor more details. Either way should make sure the modules requiring the Login module to be loaded
first have that happen. I don't remember ever using/trying tokens (*-Provides/*-Requires), but it
has been around for a while. A token will be a class name, and it lets your module require a
particular class name to be loaded before it is loaded.
Wade
==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.comhttp://wiki.netbeans.org/wiki/view/NetBeansDreamTeamhttp://www.netbeans.org