ImageDescriptor; import org. AbstractUIPlugin; import org. AbstractUIPlugin start org. AbstractUIPlugin stop org. IWorkbenchWindowActionDelegate is the one implemented here, but other kind of action may implement other interface, e. Notice that run is the callback method which will be called by its proxy. Callback is a concept in observer design pattern. IAction; import org. Eclipse Community Forums Forum Search:. Search Help Register Login Home. Powered by FUDForum.
Page generated in 0. Sign up to our Newsletter A fresh new issue delivered monthly. Eclipse Community Forums. Forum Search:. How to auto-startup a bundle in server-side? Wed, 12 July Eclipse User. Originally posted by: ltran. I studied Eclipse and found out a way to do that in RCP, which is to extend the org. Do we have the same capability in the server-side framework? Thanks a lot. Re: How to auto-startup a bundle in server-side? Thu, 13 July Originally posted by: skaegi.
If you want to it should be easy enough to write a similar extension point yourself. That said, probably the easiest way for static environments is to add yourbundle start to the osgi. Starts up this plug-in. This method should be overridden in subclasses that need to do something when this plug-in is started.
Implementors should call the inherited method at the first possible point to ensure that any system requirements can be met. If this method throws an exception, it is taken as an indication that plug-in initialization has failed; as a result, the plug-in will not be activated; moreover, the plug-in will be marked as disabled and ineligible for activation for the duration.
Note 1: This method is automatically invoked by the platform the first time any code in the plug-in is executed. Note 2: This method is intended to perform simple initialization of the plug-in environment. The platform may terminate initializers that do not complete in a timely fashion. Note 3: The class loader typically has monitors acquired during invocation of this method. It is strongly recommended that this method avoid synchronized blocks or other thread locking mechanisms, as this would lead to deadlock vulnerability.
Note 4: The supplied bundle context represents the plug-in to the OSGi framework. For security reasons, it is strongly recommended that this object should not be divulged. Note 5: This method and the Plugin.
0コメント