Tabnine Logo
PrettyAnnotationHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
PrettyAnnotationHandler
in
com.ocpsoft.pretty.faces.config.annotation

Best Java code snippets using com.ocpsoft.pretty.faces.config.annotation.PrettyAnnotationHandler (Showing top 20 results out of 315)

origin: ocpsoft/prettyfaces

PrettyAnnotationHandler annotationHandler = new PrettyAnnotationHandler(beanNameFinder);
annotationHandler.build(builder);
return builder.build();
origin: ocpsoft/prettyfaces

String[] classMappingIds = processClassMappingAnnotations(clazz);
processPrettyBeanAnnotation(clazz);
 processMethodAnnotations(method, classMappingIds);
 processFieldAnnotations(field, classMappingIds);
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Searches for {@link URLAction} or {@link URLActions} annotations on a
* method.
* 
* @param method Method to scan
* @param classMappingIds The mapping IDs of the class this method belongs to
*/
private void processMethodAnnotations(Method method, String[] classMappingIds)
{
 // is there a @URLAction annotation on the class?
 URLAction actionAnnotation = method.getAnnotation(URLAction.class);
 if (actionAnnotation != null)
 {
   processPrettyActionAnnotation(actionAnnotation, method, classMappingIds);
 }
 // is there a @URLAction container annotation on the class?
 URLActions actionsAnnotation = method.getAnnotation(URLActions.class);
 if (actionsAnnotation != null)
 {
   // process all @URLAction annotations
   for (URLAction child : actionsAnnotation.actions())
   {
    processPrettyActionAnnotation(child, method, classMappingIds);
   }
 }
}
origin: ocpsoft/prettyfaces

PrettyExpression expression = buildPrettyExpression(clazz, actionSpec.getMethod().getName());
urlAction.setAction(expression);
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
if (!isBlank(queryParamSpec.getValidator()))
PrettyExpression expression = buildPrettyExpression(clazz, queryParamSpec.getFieldName());
queryParam.setExpression(expression);
origin: ocpsoft/prettyfaces

pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
if (!isBlank(validationAnnotation.validator()))
origin: ocpsoft/rewrite

if (!isBlank(actionAnnotation.mappingId()))
origin: com.ocpsoft/prettyfaces-jsf2

PrettyExpression expression = buildPrettyExpression(clazz, actionSpec.getMethod().getName());
urlAction.setAction(expression);
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
if (!isBlank(queryParamSpec.getValidator()))
PrettyExpression expression = buildPrettyExpression(clazz, queryParamSpec.getFieldName());
queryParam.setExpression(expression);
origin: com.ocpsoft/prettyfaces-jsf2

pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
if (!isBlank(validationAnnotation.validator()))
origin: com.ocpsoft/prettyfaces-jsf2

if (!isBlank(actionAnnotation.mappingId()))
origin: ocpsoft/rewrite

String[] classMappingIds = processClassMappingAnnotations(clazz);
processPrettyBeanAnnotation(clazz);
 processMethodAnnotations(method, classMappingIds);
 processFieldAnnotations(field, classMappingIds);
origin: ocpsoft/rewrite

PrettyExpression expression = buildPrettyExpression(clazz, actionSpec.getMethod().getName());
urlAction.setAction(expression);
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
if (!isBlank(queryParamSpec.getValidator()))
PrettyExpression expression = buildPrettyExpression(clazz, queryParamSpec.getFieldName());
queryParam.setExpression(expression);
origin: com.ocpsoft/prettyfaces-jsf2

PrettyAnnotationHandler annotationHandler = new PrettyAnnotationHandler(beanNameFinder);
annotationHandler.build(builder);
return builder.build();
origin: ocpsoft/rewrite

pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
if (!isBlank(validationAnnotation.validator()))
origin: ocpsoft/prettyfaces

if (!isBlank(actionAnnotation.mappingId()))
origin: ocpsoft/rewrite

/**
* Searches for {@link URLAction} or {@link URLActions} annotations on a method.
* 
* @param method Method to scan
* @param classMappingIds The mapping IDs of the class this method belongs to
*/
private void processMethodAnnotations(Method method, String[] classMappingIds)
{
 // is there a @URLAction annotation on the class?
 URLAction actionAnnotation = method.getAnnotation(URLAction.class);
 if (actionAnnotation != null)
 {
   processPrettyActionAnnotation(actionAnnotation, method, classMappingIds);
 }
 // is there a @URLAction container annotation on the class?
 URLActions actionsAnnotation = method.getAnnotation(URLActions.class);
 if (actionsAnnotation != null)
 {
   // process all @URLAction annotations
   for (URLAction child : actionsAnnotation.actions())
   {
    processPrettyActionAnnotation(child, method, classMappingIds);
   }
 }
}
origin: com.ocpsoft/prettyfaces-jsf2

String[] classMappingIds = processClassMappingAnnotations(clazz);
processPrettyBeanAnnotation(clazz);
 processMethodAnnotations(method, classMappingIds);
 processFieldAnnotations(field, classMappingIds);
origin: ocpsoft/prettyfaces

PrettyExpression expression = buildPrettyExpression(clazz, actionSpec.getMethod().getName());
urlAction.setAction(expression);
queryParam.setName(queryParamSpec.getName());
queryParam.setOnError(queryParamSpec.getOnError());
queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " "));
queryParam.setOnPostback(queryParamSpec.isOnPostback());
if (!isBlank(queryParamSpec.getValidator()))
PrettyExpression expression = buildPrettyExpression(clazz, queryParamSpec.getFieldName());
queryParam.setExpression(expression);
origin: ocpsoft/rewrite

PrettyAnnotationHandler annotationHandler = new PrettyAnnotationHandler(beanNameFinder);
annotationHandler.build(builder);
return builder.build();
origin: ocpsoft/prettyfaces

pathValidator.setIndex(validationAnnotation.index());
pathValidator.setOnError(validationAnnotation.onError());
pathValidator.setValidatorIds(join(validationAnnotation.validatorIds(), " "));
if (!isBlank(validationAnnotation.validator()))
origin: ocpsoft/prettyfaces

if (!isBlank(actionAnnotation.mappingId()))
com.ocpsoft.pretty.faces.config.annotationPrettyAnnotationHandler

Most used methods

  • <init>
    Constructor
  • build
    This methods adds all mappings found to the supplied PrettyConfigBuilder. It should be called after
  • buildPrettyExpression
    Creates a PrettyExpression for a class and component. This method may return a ConstantExpression or
  • isBlank
    Returns true for "blank" strings.
  • join
    Joins the list of values.
  • processClassMappingAnnotations
    Checks for PrettyFaces mapping annotations on a single class
  • processFieldAnnotations
    Searches for URLQueryParameter annotations on a single field.
  • processMethodAnnotations
    Searches for URLAction or URLActions annotations on a method.
  • processPrettyActionAnnotation
    Creates a UrlAction object from the supplied URLActionannotation
  • processPrettyBeanAnnotation
    Checks the class for a URLBeanName annotation.
  • processPrettyMappingAnnotation
    Process a single URLMapping annotation.
  • processClass
    This method scans the supplied class for PrettyFaces annotations. The method must be called for ever
  • processPrettyMappingAnnotation,
  • processClass

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFrame (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now