Class SpringConfig

java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.extension.spring.api.SpringConfig
All Implemented Interfaces:
org.mule.runtime.api.component.Component, org.mule.runtime.api.ioc.ConfigurableObjectProvider, org.mule.runtime.api.ioc.ObjectProvider, org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.meta.NamedObject

public class SpringConfig extends org.mule.runtime.api.component.AbstractComponent implements org.mule.runtime.api.ioc.ConfigurableObjectProvider, org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.meta.NamedObject
Implementation of ObjectProvider that gives access to object to the mule artifact from an spring ApplicationContext.
Since:
1.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.mule.runtime.api.component.Component

    org.mule.runtime.api.component.Component.Annotations
  • Field Summary

    Fields inherited from class org.mule.runtime.api.component.AbstractComponent

    ANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY

    Fields inherited from interface org.mule.runtime.api.component.Component

    ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA

    Fields inherited from interface org.mule.runtime.api.lifecycle.Disposable

    PHASE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(org.mule.runtime.api.ioc.ObjectProviderConfiguration configuration)
     
    boolean
     
    void
     
    org.springframework.context.support.ClassPathXmlApplicationContext
     
     
     
    getObjectByType(Class<?> objectType)
     
    <T> Map<String,T>
     
     
     
    void
    setApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext applicationContext)
     
    void
     
    void
     

    Methods inherited from class org.mule.runtime.api.component.AbstractComponent

    getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.mule.runtime.api.component.Component

    getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, setAnnotations
  • Constructor Details

    • SpringConfig

      public SpringConfig()
  • Method Details

    • setParameters

      public void setParameters(Map<String,String> parameters)
    • configure

      public void configure(org.mule.runtime.api.ioc.ObjectProviderConfiguration configuration)
      Specified by:
      configure in interface org.mule.runtime.api.ioc.ConfigurableObjectProvider
    • getObject

      public Optional<Object> getObject(String name)
      Specified by:
      getObject in interface org.mule.runtime.api.ioc.ObjectProvider
    • getObjectByType

      public Optional<Object> getObjectByType(Class<?> objectType)
      Specified by:
      getObjectByType in interface org.mule.runtime.api.ioc.ObjectProvider
    • isObjectSingleton

      public Optional<Boolean> isObjectSingleton(String name)
      Specified by:
      isObjectSingleton in interface org.mule.runtime.api.ioc.ObjectProvider
    • containsObject

      public boolean containsObject(String name)
      Specified by:
      containsObject in interface org.mule.runtime.api.ioc.ObjectProvider
    • getObjectsByType

      public <T> Map<String,T> getObjectsByType(Class<T> type)
      Specified by:
      getObjectsByType in interface org.mule.runtime.api.ioc.ObjectProvider
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.mule.runtime.api.lifecycle.Disposable
    • getName

      public String getName()
      Specified by:
      getName in interface org.mule.runtime.api.meta.NamedObject
    • getParameters

      public Map<String,String> getParameters()
    • getApplicationContext

      public org.springframework.context.support.ClassPathXmlApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext applicationContext)
    • setName

      public void setName(String name)