| Summary: | Identify what classes/interfaces can be used without OSGi running | ||
|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Remy Suen <remy.suen> |
| Component: | ecf.core | Assignee: | ecf.core-inbox <ecf.core-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | slewis |
| Version: | 1.1.0 | Keywords: | helpwanted |
| Target Milestone: | 1.2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Remy Suen
I've determined that Platform.isRunning() is a the better way to handle #162670, so I've changed the code in IDFactory and ContainerFactory to use this method. I think doing what's described in this bug more thoroughly is a good idea, but the general (at this point) guideline is: Everything in org.eclipse.ecf.identity, org.eclipse.ecf, and org.eclipse.ecf.sharedobject are/should be able to run as java application. Haven't tested this since refactoring obviously...that's the thing to do now and find any problems introduced. That and add to javadocs for classes/package level. I'm curious as to whether it's actually possible to use any (of the existing) ECF APIs without OSGi running (ignoring org.eclipse.ecf.provider and provider implementations) since (as far as I know) none of the APIs are using anything from the Platform besides IAdaptable and IAdapterFactory (which can be used without OSGi anyway). The filetransfer API may change if we want to consider supporting IFile or replacing File with IFile and/or if we wish to leverage EFS, but for the most part, I don't really see any real ECF dependencies for OSGi-required interfaces or classes. (In reply to comment #2) > I'm curious as to whether it's actually possible to use any (of the existing) > ECF APIs without OSGi running (ignoring org.eclipse.ecf.provider and provider > implementations) since (as far as I know) none of the APIs are using anything > from the Platform besides IAdaptable and IAdapterFactory (which can be used > without OSGi anyway). I think it should be possible. The main identity and core APIs only have ties to IAdaptable IAdapterFactory and Platform (now) and the ContainerFactory and IDFactory can be modified in code (as well as by extension points). > > The filetransfer API may change if we want to consider supporting IFile or > replacing File with IFile and/or if we wish to leverage EFS, but for the most > part, I don't really see any real ECF dependencies for OSGi-required interfaces > or classes. I don't think it does have any other dependencies on OSGi...other than the IDFactory and ContainerFactory. But this would be worth trying out to be sure, of course. > I suggest that this bug be combined as a documentation requirement for #173283. Setting target milestone to 1.1.0 setting target milestone No need for this at this point. If still desired and resources available, please reopen. |