public class ApplicationContextsRegistry extends Object implements org.apache.camel.spi.Registry, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
Registry
that load beans from all ApplicationContext
s.
For every ApplicationContext
is created own ApplicationContextRegistry
.Registry
,
DefaultCamelContext.setRegistry(Registry)
Constructor and Description |
---|
ApplicationContextsRegistry() |
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
Object |
lookup(String name) |
<T> T |
lookup(String name,
Class<T> type) |
Object |
lookupByName(String name) |
<T> T |
lookupByNameAndType(String name,
Class<T> type) |
<T> Map<String,T> |
lookupByType(Class<T> type) |
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
public Object lookupByName(String name)
lookupByName
in interface org.apache.camel.spi.Registry
public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName
in interface org.apache.camel.spi.Registry
public <T> Set<T> findByType(Class<T> type)
findByType
in interface org.apache.camel.spi.Registry
public Object lookup(String name)
lookup
in interface org.apache.camel.spi.Registry
public <T> T lookup(String name, Class<T> type)
lookup
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> lookupByType(Class<T> type)
lookupByType
in interface org.apache.camel.spi.Registry
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.