liferay-docs icon indicating copy to clipboard operation
liferay-docs copied to clipboard

Update 05-overriding-language-keys.markdown

Open stenmartinez opened this issue 7 years ago • 2 comments

remove the bundle symbolic name from the component declaration, to prevent the class from having a circular reference when the component is started.

stenmartinez avatar Jul 27 '17 16:07 stenmartinez

@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

jhinkey avatar Jul 27 '17 18:07 jhinkey

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).

stenmartinez avatar Jul 31 '17 13:07 stenmartinez