I'm attempting to configure spring security to use a service I implemented for authentication. My services and entity manager and all that are configured with annotations. I don't want to move all of the service, dao, and entity manager configuration into XML. How can I get the authentication-provider configuration to reference a service bean that is only configured through annotations?
Here is the configuration in the xml
<authentication-manager>
<authentication-provider user-service-ref="userService" />
</authentication-manager>
And here is the definition of the service
@Configurable
@Service( value = "userService" )
public class UserServiceImpl
extends BaseDataServiceAbstract<User, Long>
implements UserService
{