-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBehavior
(String behaviorId, String behaviorClass) void
addComponent
(String componentType, String componentClass) void
addConverter
(Class<?> targetClass, String converterClass) void
addConverter
(String converterId, String converterClass) void
addDefaultValidatorId
(String validatorId) void
addValidator
(String validatorId, String validatorClass) createBehavior
(String behaviorId) createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) createComponent
(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) createComponent
(FacesContext context, Resource componentResource, ExpressionFactory expressionFactory) createComponent
(FacesContext context, String componentType, String rendererType) createComponent
(String componentType) createConverter
(Class<?> targetClass) Converter
<?> createConverter
(String converterId) Validator
<?> createValidator
(String validatorId) protected Object
The same as newThing except that a single argument constructor that accepts a Class is looked for before calling the no-arg version.
-
Constructor Details
-
InstanceFactory
-
-
Method Details
-
addComponent
-
createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext context, String componentType) throws FacesException - Throws:
FacesException
-
createComponent
- Throws:
FacesException
-
createComponent
public UIComponent createComponent(FacesContext context, Resource componentResource, ExpressionFactory expressionFactory) throws FacesException - Throws:
FacesException
-
createComponent
-
createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) -
getComponentTypes
-
addBehavior
-
createBehavior
- Throws:
FacesException
-
getBehaviorIds
-
addConverter
-
addConverter
-
createConverter
-
createConverter
-
getConverterIds
-
getConverterTypes
-
addValidator
-
createValidator
- Throws:
FacesException
-
getValidatorIds
-
addDefaultValidatorId
-
getDefaultValidatorInfo
-
newConverter
The same as newThing except that a single argument constructor that accepts a Class is looked for before calling the no-arg version.
PRECONDITIONS: the values in the Map are either Strings representing fully qualified java class names, or java.lang.Class instances.
ALGORITHM: Look in the argument map for a value for the argument key. If found, if the value is instanceof String, assume the String specifies a fully qualified java class name and obtain the java.lang.Class instance for that String using Util.loadClass(). Replace the String instance in the argument map with the Class instance. If the value is instanceof Class, proceed. Assert that the value is either instanceof java.lang.Class or java.lang.String.
Now that you have a java.lang.class, call its newInstance and return it as the result of this method.
- Parameters:
key
- Used to look up the value in theMap
.map
- TheMap
that will be searched.targetClass
- the target class for the single argument ctor- Returns:
- The new object instance.
-