Package org.apache.camel.spi
Interface LocalBeanRepositoryAware
public interface LocalBeanRepositoryAware
Allows a
BeanRepository
to temporary have a local repository take precedence, such as when creating route
templates to give more flexibility.-
Method Summary
Modifier and TypeMethodDescriptionGets the local bean repository (if any in use)void
setLocalBeanRepository
(BeanRepository repository) Sets a special local bean repository (ie thread local) that take precedence and will use first, if a bean exists.
-
Method Details
-
setLocalBeanRepository
Sets a special local bean repository (ie thread local) that take precedence and will use first, if a bean exists.- Parameters:
repository
- the local repository, or null to unset when no longer needed.
-
getLocalBeanRepository
BeanRepository getLocalBeanRepository()Gets the local bean repository (if any in use)
-