KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm new to Guice and here is a naive question. I learned that we could bind String to a particular value through: bind(String.class) .annotatedWith(Names.named("JDBC URL")) .toInstance("jdbc:mysql://localhost/pizza"); But what if I want to bind String to any possible characters? Or I think it could be described this way: How can I replace "new SomeClass(String strParameter)" with Guice?
Tags (comma-separated)
Save Edits
Cancel