Announcement Announcement Module
Collapse
No announcement yet.
@component for beans from out side application code Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @component for beans from out side application code

    Hi,
    i am using @autowired and @component to weave together my app.
    now i am left with few beans which i need to inject,and these are the beans from third party code as below

    Code:
        
    <bean id="errorLogger" class="org.apache.log4j.Logger" factory-method="getLogger">
        <constructor-arg type="java.lang.String" value="errorLogger" />
    </bean>
    as this is being created from org.apache.log4j.Logger i am not able to use @component

    is there any way apart from xml configuration to get this bean wired.
    like writing custom annotation for this or so.

    please share ur experience for such a case
    thanks
    Narayan
Working...
X