Module org.mule.runtime.dsl.api
Class AbstractComponentFactory<T>
java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.runtime.dsl.api.component.AbstractComponentFactory<T>
- Type Parameters:
T- the type of the object to be created, which should be anComponent.
- All Implemented Interfaces:
org.mule.runtime.api.component.Component,ComponentFactory<T>,ObjectFactory<T>
public abstract class AbstractComponentFactory<T>
extends org.mule.runtime.api.component.AbstractComponent
implements ComponentFactory<T>
Basic implementation of
ComponentFactory that handles all annotation related behavior including
ObjectFactory.getObject().-
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_METADATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TMethod to be implemented instead ofObjectFactory.getObject().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
-
AbstractComponentFactory
public AbstractComponentFactory()
-
-
Method Details
-
doGetObject
Method to be implemented instead ofObjectFactory.getObject().- Returns:
- the domain object
- Throws:
Exception- if any failure occurs building the object
-
getObject
- Specified by:
getObjectin interfaceObjectFactory<T>- Returns:
- the created object
- Throws:
Exception- any failure that may occur building the object
-