Annotation Type PropertyMethod


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    public @interface PropertyMethod
    Annotation indicating that a default method of a WritableBean interface is a factory method for a Property. When BeanFactory is used to instantiate WritableBeans from interface as dynamic Proxy, such annotated default method will be used only internally to create the Property that is then stored in the dynamic proxy. Further invocations of the annotated default method will then return the exact same instance instead of calling the default method again.
    Please note that we put the annotation into this module for simplicity so your API can depend on less modules even though it technically belongs to mmm-bean-factory.