Hi,
There must be something about the ResourceDependency which I don't
understand because nothing happens in the class that depends on a specific
resource.
I have embedded a text file with my bundle (/res/file.txt).
In my bundle Activator, which extends DependencyActivatorBase I have added
the dependency with the DependencyManager in the init method:
public void init(final BundleContext context, final DependencyManager
dependencyManager) throws Exception {
dependencyManager.add(
createComponent()
.setImplementation(ResDependent.instance())
.add(createResourceDependency()
.setResource(context.getBundle().getEntry("/res/file.txt"))
.setRequired(true)
)
);
}
If I set required = true, ResDependent.start does not get called.
If I set required = false, ResDependent.start gets called but nothing else
happens.
What am I missing here?
Thanks,
Bokie
--
View this message in context:
http://apache-felix.18485.n6.nabble.com/DependencyManager-ResourceDependency-tp5000335.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]