Search:

Type: Posts; User: mrduguo; Keyword(s):

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    2,098

    The given sample is a "legal" java model class,...

    The given sample is a "legal" java model class, just a different style without setter/getter. I love spring because it's simplicity and the public filed injection could contribute to the this...
  2. It's exepcted behavior if you read the...

    It's exepcted behavior if you read the implementation. Fields are scaned before methods. So at runtime, spring first inject to bean field by reflection, then it will override by the setBean method.
    ...
  3. Replies
    4
    Views
    2,098

    Thanks for the reply during weekend. Yes, it can....

    Thanks for the reply during weekend. Yes, it can. But you have to:
    add the annotation which will depends on Spring or javax.inject.Inject.
    it will need AutowiredAnnotationBeanPostProcessor as...
  4. Replies
    4
    Views
    2,098

    Inject into public field without setter

    I am a long time spring lover/user and used to generate setter/getter where necessary.

    Until recently I doubt the value of getter/setter added compare to the cost to the code. I don't want get...
  5. Replies
    4
    Views
    1,005

    I say explicitly means standard OSGi...

    I say explicitly means standard OSGi Import-Package header to import any class which may be loaded by spring osgi extender.

    SpringSource Bundlor aware of spring xml file and could generate header...
  6. Replies
    4
    Views
    1,005

    Yes, you need explicitly import any spring...

    Yes, you need explicitly import any spring related classes. The class loader of the target bundle doesn't aware of spring.
  7. http://static.springsource.org/osgi/docs/2.0.0.M1/...

    http://static.springsource.org/osgi/docs/2.0.0.M1/reference/html/bnd-app-ctx.html#bnd-app-ctx:app-creation:app-ctx-publication

    By default spring application context was published as service, so...
  8. Hi Costin, first thanks for the reply. I tried...

    Hi Costin, first thanks for the reply.

    I tried following configuration:


    <reference id="myService" interface="com.xyz.MyServiceInterface"/>

    <bean id="serviceConsumer"...
  9. Is that possible to get osgi service reference without proxy?

    It's easy to get an OSGi service with following simple configuration:
    <reference id="asyncMessageService" interface="com.xyz.MessageService"/>

    While it always return a proxy to original bean or...
  10. Replies
    2
    Views
    693

    You may configure an ApplicationEventMulticaster...

    You may configure an ApplicationEventMulticaster to propagate such kind of event.
    ...
Results 1 to 10 of 10