Package org.apache.camel.reifier
Class AbstractReifier
- java.lang.Object
-
- org.apache.camel.reifier.AbstractReifier
-
- All Implemented Interfaces:
org.apache.camel.spi.BeanRepository
- Direct Known Subclasses:
DataFormatReifier
,ErrorHandlerReifier
,ExpressionReifier
,LoadBalancerReifier
,ProcessorReifier
,RestBindingReifier
,TransformerReifier
,ValidatorReifier
public abstract class AbstractReifier extends Object implements org.apache.camel.spi.BeanRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.CamelContext
camelContext
protected org.apache.camel.Route
route
-
Constructor Summary
Constructors Constructor Description AbstractReifier(org.apache.camel.CamelContext camelContext)
AbstractReifier(org.apache.camel.Route route)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
asRef(String s)
protected org.apache.camel.Expression
createExpression(org.apache.camel.model.ExpressionSubElementDefinition expression)
protected org.apache.camel.Expression
createExpression(org.apache.camel.model.language.ExpressionDefinition expression)
protected org.apache.camel.Predicate
createPredicate(org.apache.camel.model.ExpressionSubElementDefinition expression)
protected org.apache.camel.Predicate
createPredicate(org.apache.camel.model.language.ExpressionDefinition expression)
<T> Set<T>
findByType(Class<T> type)
<T> Map<String,T>
findByTypeWithName(Class<T> type)
<T> T
findSingleByType(Class<T> type)
protected org.apache.camel.spi.BeanRepository
getRegistry()
<T> T
lookup(String name, Class<T> type)
Object
lookupByName(String name)
<T> T
lookupByNameAndType(String name, Class<T> type)
<T> T
mandatoryLookup(String name, Class<T> beanType)
protected Object
or(Object a, Object b)
protected <T> T
parse(Class<T> clazz, Object text)
protected <T> T
parse(Class<T> clazz, String text)
protected Boolean
parseBoolean(String text)
protected boolean
parseBoolean(String text, boolean def)
protected Long
parseDuration(String text)
protected long
parseDuration(String text, long def)
protected Float
parseFloat(String text)
protected float
parseFloat(String text, float def)
protected Integer
parseInt(String text)
protected int
parseInt(String text, int def)
protected Long
parseLong(String text)
protected long
parseLong(String text, long def)
protected String
parseString(String text)
org.apache.camel.Endpoint
resolveEndpoint(String uri)
Object
unwrap(Object value)
-
-
-
Method Detail
-
parseBoolean
protected boolean parseBoolean(String text, boolean def)
-
parseLong
protected long parseLong(String text, long def)
-
parseDuration
protected long parseDuration(String text, long def)
-
parseInt
protected int parseInt(String text, int def)
-
parseFloat
protected float parseFloat(String text, float def)
-
createExpression
protected org.apache.camel.Expression createExpression(org.apache.camel.model.language.ExpressionDefinition expression)
-
createExpression
protected org.apache.camel.Expression createExpression(org.apache.camel.model.ExpressionSubElementDefinition expression)
-
createPredicate
protected org.apache.camel.Predicate createPredicate(org.apache.camel.model.language.ExpressionDefinition expression)
-
createPredicate
protected org.apache.camel.Predicate createPredicate(org.apache.camel.model.ExpressionSubElementDefinition expression)
-
getRegistry
protected org.apache.camel.spi.BeanRepository getRegistry()
-
findSingleByType
public <T> T findSingleByType(Class<T> type)
-
lookupByName
public Object lookupByName(String name)
- Specified by:
lookupByName
in interfaceorg.apache.camel.spi.BeanRepository
-
lookupByNameAndType
public <T> T lookupByNameAndType(String name, Class<T> type)
- Specified by:
lookupByNameAndType
in interfaceorg.apache.camel.spi.BeanRepository
-
findByTypeWithName
public <T> Map<String,T> findByTypeWithName(Class<T> type)
- Specified by:
findByTypeWithName
in interfaceorg.apache.camel.spi.BeanRepository
-
findByType
public <T> Set<T> findByType(Class<T> type)
- Specified by:
findByType
in interfaceorg.apache.camel.spi.BeanRepository
-
unwrap
public Object unwrap(Object value)
- Specified by:
unwrap
in interfaceorg.apache.camel.spi.BeanRepository
-
resolveEndpoint
public org.apache.camel.Endpoint resolveEndpoint(String uri) throws org.apache.camel.NoSuchEndpointException
- Throws:
org.apache.camel.NoSuchEndpointException
-
-