Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.camel.spi.BeanIntrospection

        org.apache.camel.spi.BeanIntrospection.ClassInfo, org.apache.camel.spi.BeanIntrospection.MethodInfo
    • Field Summary

      • Fields inherited from class org.apache.camel.support.service.BaseService

        BUILDED, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTINGDOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
    • Constructor Detail

      • DefaultBeanIntrospection

        public DefaultBeanIntrospection()
    • Method Detail

      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • getInvokedCounter

        public long getInvokedCounter()
        Specified by:
        getInvokedCounter in interface org.apache.camel.spi.BeanIntrospection
      • resetCounters

        public void resetCounters()
        Specified by:
        resetCounters in interface org.apache.camel.spi.BeanIntrospection
      • isExtendedStatistics

        public boolean isExtendedStatistics()
        Specified by:
        isExtendedStatistics in interface org.apache.camel.spi.BeanIntrospection
      • setExtendedStatistics

        public void setExtendedStatistics​(boolean extendedStatistics)
        Specified by:
        setExtendedStatistics in interface org.apache.camel.spi.BeanIntrospection
      • getLoggingLevel

        public org.apache.camel.LoggingLevel getLoggingLevel()
        Specified by:
        getLoggingLevel in interface org.apache.camel.spi.BeanIntrospection
      • setLoggingLevel

        public void setLoggingLevel​(org.apache.camel.LoggingLevel loggingLevel)
        Specified by:
        setLoggingLevel in interface org.apache.camel.spi.BeanIntrospection
      • cacheClass

        public org.apache.camel.spi.BeanIntrospection.ClassInfo cacheClass​(Class<?> clazz)
        Specified by:
        cacheClass in interface org.apache.camel.spi.BeanIntrospection
      • clearCache

        public void clearCache()
        Specified by:
        clearCache in interface org.apache.camel.spi.BeanIntrospection
      • getCachedClassesCounter

        public long getCachedClassesCounter()
        Specified by:
        getCachedClassesCounter in interface org.apache.camel.spi.BeanIntrospection
      • getProperties

        public boolean getProperties​(Object target,
                                     Map<String,​Object> properties,
                                     String optionPrefix)
        Specified by:
        getProperties in interface org.apache.camel.spi.BeanIntrospection
      • getProperties

        public boolean getProperties​(Object target,
                                     Map<String,​Object> properties,
                                     String optionPrefix,
                                     boolean includeNull)
        Specified by:
        getProperties in interface org.apache.camel.spi.BeanIntrospection
      • getOrElseProperty

        public Object getOrElseProperty​(Object target,
                                        String propertyName,
                                        Object defaultValue,
                                        boolean ignoreCase)
        Specified by:
        getOrElseProperty in interface org.apache.camel.spi.BeanIntrospection
      • 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:
        setProperty in interface org.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:
        setProperty in interface org.apache.camel.spi.BeanIntrospection
        Throws:
        Exception
      • findSetterMethods

        public Set<Method> findSetterMethods​(Class<?> clazz,
                                             String name,
                                             boolean allowBuilderPattern,
                                             boolean allowPrivateSetter,
                                             boolean ignoreCase)
        Specified by:
        findSetterMethods in interface org.apache.camel.spi.BeanIntrospection
      • afterPropertiesConfigured

        public void afterPropertiesConfigured​(org.apache.camel.CamelContext camelContext)
        Specified by:
        afterPropertiesConfigured in interface org.apache.camel.AfterPropertiesConfigured
      • doInit

        protected void doInit()
                       throws Exception
        Overrides:
        doInit in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • onCamelContextStarted

        public void onCamelContextStarted​(org.apache.camel.CamelContext context,
                                          boolean alreadyStarted)
                                   throws Exception
        Specified by:
        onCamelContextStarted in interface org.apache.camel.StartupListener
        Throws:
        Exception