Service Bean in core
Posted: Fri Mar 01, 2013 5:00 am
Hello,
I want to create the spring service bean in the core package. There is find all method to find my customerType entity. I want to find my entities by using this bean in my customerTypeUtil class that extends BroadleafEnumerationType because I don't want to add static customertype. I want to load from table.
I am trying to do like this. But I cannot inject the service bean in my customerTypeUtil. I got nullpointer exception. I have already defied service bean in the core's applicationContext.xml.
I would like to know that can I use spring service bean in the core package.
Thanks
Julia
I want to create the spring service bean in the core package. There is find all method to find my customerType entity. I want to find my entities by using this bean in my customerTypeUtil class that extends BroadleafEnumerationType because I don't want to add static customertype. I want to load from table.
I am trying to do like this. But I cannot inject the service bean in my customerTypeUtil. I got nullpointer exception. I have already defied service bean in the core's applicationContext.xml.
I would like to know that can I use spring service bean in the core package.
Thanks
Julia