Package org.mule.extension.spring.api
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_KEYFields inherited from interface org.mule.runtime.api.component.Component
ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATAFields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.mule.runtime.api.ioc.ObjectProviderConfiguration configuration) booleancontainsObject(String name) voiddispose()org.springframework.context.support.ClassPathXmlApplicationContextgetName()getObjectByType(Class<?> objectType) getObjectsByType(Class<T> type) isObjectSingleton(String name) voidsetApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext applicationContext) voidvoidsetParameters(Map<String, String> parameters) Methods inherited from class org.mule.runtime.api.component.AbstractComponent
getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
configure
public void configure(org.mule.runtime.api.ioc.ObjectProviderConfiguration configuration) - Specified by:
configurein interfaceorg.mule.runtime.api.ioc.ConfigurableObjectProvider
-
getObject
- Specified by:
getObjectin interfaceorg.mule.runtime.api.ioc.ObjectProvider
-
getObjectByType
- Specified by:
getObjectByTypein interfaceorg.mule.runtime.api.ioc.ObjectProvider
-
isObjectSingleton
- Specified by:
isObjectSingletonin interfaceorg.mule.runtime.api.ioc.ObjectProvider
-
containsObject
- Specified by:
containsObjectin interfaceorg.mule.runtime.api.ioc.ObjectProvider
-
getObjectsByType
- Specified by:
getObjectsByTypein interfaceorg.mule.runtime.api.ioc.ObjectProvider
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.mule.runtime.api.lifecycle.Disposable
-
getName
- Specified by:
getNamein interfaceorg.mule.runtime.api.meta.NamedObject
-
getParameters
-
getApplicationContext
public org.springframework.context.support.ClassPathXmlApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext applicationContext) -
setName
-