liferay-docs
liferay-docs copied to clipboard
Update 05-overriding-language-keys.markdown
remove the bundle symbolic name from the component declaration, to prevent the class from having a circular reference when the component is started.
@gamerson, @Lawrence-lee - Sten claims that using the bundle symbolic name (BSN) in the resource bundler loader's component annotation causes a circular dependency. This is because the loader also references that BSN. Should the BSN be removed from the Component annotation?
I see that the blade sample uses the BSN in its Component annotation.
Thanks
you could conceivably keep the BSN in the resource bundler component - as long as the target = "(&(bundle.symbolic.name=com.liferay.blogs.web)(!(component.name=com.liferay.blade.samples.hook.resourcebundle.ResourceBundleLoaderComponent)))"
is used on the reference - but it might be prudent to explain why this is required (i.e. why the BSN is needed on the component at all).