-
Aug 24th, 2010, 11:32 PM
#1
bean naming stratergy using java config
Is it possible to create bean names dynamically? I have a query that would return me a list of names that I want to give the beans
for example...
@Configuration
public class SomeConfig
{
@Bean public MyResource someresource()
{
return new someresourceimpl();
}
}
can the name of the bean "someresource" be made dynamic based on some criteria?
Is there a custom bean naming stratergy? Can anyone share some sample code?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules