Package org.apache.camel.impl.engine
Class DefaultBeanIntrospection
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.impl.engine.DefaultBeanIntrospection
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.AfterPropertiesConfigured,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.BeanIntrospection,org.apache.camel.StartupListener,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
public class DefaultBeanIntrospection extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.BeanIntrospection, org.apache.camel.CamelContextAware, org.apache.camel.StartupListener
-
-
Constructor Summary
Constructors Constructor Description DefaultBeanIntrospection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesConfigured(org.apache.camel.CamelContext camelContext)org.apache.camel.spi.BeanIntrospection.ClassInfocacheClass(Class<?> clazz)voidclearCache()protected voiddoInit()protected voiddoStop()Set<Method>findSetterMethods(Class<?> clazz, String name, boolean allowBuilderPattern, boolean allowPrivateSetter, boolean ignoreCase)longgetCachedClassesCounter()org.apache.camel.CamelContextgetCamelContext()longgetInvokedCounter()org.apache.camel.LoggingLevelgetLoggingLevel()ObjectgetOrElseProperty(Object target, String propertyName, Object defaultValue, boolean ignoreCase)booleangetProperties(Object target, Map<String,Object> properties, String optionPrefix)booleangetProperties(Object target, Map<String,Object> properties, String optionPrefix, boolean includeNull)MethodgetPropertyGetter(Class<?> type, String propertyName, boolean ignoreCase)booleanisExtendedStatistics()voidonCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted)voidresetCounters()voidsetCamelContext(org.apache.camel.CamelContext camelContext)voidsetExtendedStatistics(boolean extendedStatistics)voidsetLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)booleansetProperty(org.apache.camel.CamelContext context, Object target, String name, Object value)booleansetProperty(org.apache.camel.CamelContext context, org.apache.camel.TypeConverter typeConverter, Object target, String name, Object value, String refName, boolean allowBuilderPattern, boolean allowPrivateSetter, boolean ignoreCase)-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.StartupListener
onCamelContextFullyStarted, onCamelContextStarting
-
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getInvokedCounter
public long getInvokedCounter()
- Specified by:
getInvokedCounterin interfaceorg.apache.camel.spi.BeanIntrospection
-
resetCounters
public void resetCounters()
- Specified by:
resetCountersin interfaceorg.apache.camel.spi.BeanIntrospection
-
isExtendedStatistics
public boolean isExtendedStatistics()
- Specified by:
isExtendedStatisticsin interfaceorg.apache.camel.spi.BeanIntrospection
-
setExtendedStatistics
public void setExtendedStatistics(boolean extendedStatistics)
- Specified by:
setExtendedStatisticsin interfaceorg.apache.camel.spi.BeanIntrospection
-
getLoggingLevel
public org.apache.camel.LoggingLevel getLoggingLevel()
- Specified by:
getLoggingLevelin interfaceorg.apache.camel.spi.BeanIntrospection
-
setLoggingLevel
public void setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
- Specified by:
setLoggingLevelin interfaceorg.apache.camel.spi.BeanIntrospection
-
cacheClass
public org.apache.camel.spi.BeanIntrospection.ClassInfo cacheClass(Class<?> clazz)
- Specified by:
cacheClassin interfaceorg.apache.camel.spi.BeanIntrospection
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceorg.apache.camel.spi.BeanIntrospection
-
getCachedClassesCounter
public long getCachedClassesCounter()
- Specified by:
getCachedClassesCounterin interfaceorg.apache.camel.spi.BeanIntrospection
-
getProperties
public boolean getProperties(Object target, Map<String,Object> properties, String optionPrefix)
- Specified by:
getPropertiesin interfaceorg.apache.camel.spi.BeanIntrospection
-
getProperties
public boolean getProperties(Object target, Map<String,Object> properties, String optionPrefix, boolean includeNull)
- Specified by:
getPropertiesin interfaceorg.apache.camel.spi.BeanIntrospection
-
getOrElseProperty
public Object getOrElseProperty(Object target, String propertyName, Object defaultValue, boolean ignoreCase)
- Specified by:
getOrElsePropertyin interfaceorg.apache.camel.spi.BeanIntrospection
-
getPropertyGetter
public Method getPropertyGetter(Class<?> type, String propertyName, boolean ignoreCase) throws NoSuchMethodException
- Specified by:
getPropertyGetterin interfaceorg.apache.camel.spi.BeanIntrospection- Throws:
NoSuchMethodException
-
setProperty
public boolean setProperty(org.apache.camel.CamelContext context, org.apache.camel.TypeConverter typeConverter, Object target, String name, Object value, String refName, boolean allowBuilderPattern, boolean allowPrivateSetter, boolean ignoreCase) throws Exception- Specified by:
setPropertyin interfaceorg.apache.camel.spi.BeanIntrospection- Throws:
Exception
-
setProperty
public boolean setProperty(org.apache.camel.CamelContext context, Object target, String name, Object value) throws Exception- Specified by:
setPropertyin interfaceorg.apache.camel.spi.BeanIntrospection- Throws:
Exception
-
findSetterMethods
public Set<Method> findSetterMethods(Class<?> clazz, String name, boolean allowBuilderPattern, boolean allowPrivateSetter, boolean ignoreCase)
- Specified by:
findSetterMethodsin interfaceorg.apache.camel.spi.BeanIntrospection
-
afterPropertiesConfigured
public void afterPropertiesConfigured(org.apache.camel.CamelContext camelContext)
- Specified by:
afterPropertiesConfiguredin interfaceorg.apache.camel.AfterPropertiesConfigured
-
doInit
protected void doInit() throws Exception- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
-