
pl.bristleback.server.bristle.integration.spring.BristleSpringBean Maven / Gradle / Ivy
// Bristleback plugin - Copyright (c) 2010 bristleback.googlecode.com
// ---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
// This library is distributed in the hope that it will be useful,
// but without any warranty; without even the implied warranty of merchantability
// or fitness for a particular purpose.
// You should have received a copy of the GNU Lesser General Public License along
// with this program; if not, see .
// ---------------------------------------------------------------------------
package pl.bristleback.server.bristle.integration.spring;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* This annotation marks method to be Spring bean dependency setter.
* To enable Spring integration, which means enabling processing this annotation, see {@link pl.bristleback.server.bristle.integration.spring.SpringIntegrationUtil} documentation.
* In later time, annotation support will be extended to fields, so no setter method will be required.
*
* Created on: 2010-10-04 17:36:27
*
* @author Wojciech Niemiec
*/
@Target({ElementType.METHOD})
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface BristleSpringBean {
/**
* User must specify Spring reference name to have dependency properly injected.
* Possible todo is to get reference name from setter using Bean convention.
*
* @return Spring bean reference.
*/
String ref();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy