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?