INJECT A CUSTOM BEAN IN A CUSTOM CLASS

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 09:28 AM
I'M ASKING FOR THE SECOND TIME
i have a custom bean in context-service.xml and i'm using AIO archetype and my bean looks like these :
<!-- -->
<bean id="UtilBeanId" class="com.util.Utils">
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
</bean>
<!-- -->
and i want to inject UtilBeanId in onther class let's called CustomeClass
my custom Class look's like these
public CustomeClass implment TaskListner
{
//the bean i want to inject is here
private Utils utils
//setter and getter for utils
}
Labels:
- Labels:
-
Alfresco Content Services
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 09:07 AM
