Tabnine Logo
com.ocpsoft.pretty.faces.annotation
Code IndexAdd Tabnine to your IDE (free)

How to use com.ocpsoft.pretty.faces.annotation

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

origin: com.ocpsoft/prettyfaces-jsf2

@Override
public int hashCode()
{
 final int prime = 31;
 int result = 1;
 result = prime * result + (action == null ? 0 : action.hashCode());
 result = prime * result + (phaseId == null ? 0 : phaseId.hashCode());
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

else if (!phaseId.equals(other.phaseId))
origin: ocpsoft/prettyfaces

/**
* Checks the class for a {@link URLBeanName} annotation.
* 
* @param clazz Class to scan
*/
private void processPrettyBeanAnnotation(Class clazz)
{
 // get reference to @URLMapping annotation
 URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);
 // process annotation if it exists
 if (prettyBean != null)
 {
   // log class name
   if (log.isTraceEnabled())
   {
    log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
   }
   // add bean to map
   beanNameMap.put(clazz, prettyBean.value());
 }
}
origin: ocpsoft/rewrite

queryParam.setFieldName(field.getName());
queryParam.setOwnerClass(field.getDeclaringClass());
queryParam.setName(queryParamAnnotation.value());
queryParam.setOnPostback(queryParamAnnotation.onPostback());
if (!isBlank(queryParamAnnotation.mappingId()))
 queryParam.setMappingIds(new String[] { queryParamAnnotation.mappingId().trim() });
 queryParam.setValidatorIds(validationAnnotation.validatorIds());
 queryParam.setOnError(validationAnnotation.onError());
 queryParam.setValidator(validationAnnotation.validator());
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: com.ocpsoft/prettyfaces-jsf2

for (URLMapping child : mappingsAnnotation.mappings())
origin: ocpsoft/prettyfaces

@Override
public int hashCode()
{
 final int prime = 31;
 int result = 1;
 result = prime * result + (action == null ? 0 : action.hashCode());
 result = prime * result + (phaseId == null ? 0 : phaseId.hashCode());
 return result;
}
origin: ocpsoft/prettyfaces

else if (!phaseId.equals(other.phaseId))
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: ocpsoft/rewrite

/**
* Checks the class for a {@link URLBeanName} annotation.
* 
* @param clazz Class to scan
*/
private void processPrettyBeanAnnotation(Class<?> clazz)
{
 // get reference to @URLMapping annotation
 URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);
 // process annotation if it exists
 if (prettyBean != null)
 {
   // log class name
   if (log.isTraceEnabled())
   {
    log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
   }
   // add bean to map
   beanNameMap.put(clazz, prettyBean.value());
 }
}
origin: ocpsoft/rewrite

for (URLMapping child : mappingsAnnotation.mappings())
origin: ocpsoft/rewrite

@Override
public int hashCode()
{
 final int prime = 31;
 int result = 1;
 result = prime * result + (action == null ? 0 : action.hashCode());
 result = prime * result + (phaseId == null ? 0 : phaseId.hashCode());
 return result;
}
origin: ocpsoft/rewrite

else if (!phaseId.equals(other.phaseId))
origin: ocpsoft/prettyfaces

/**
* 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

/**
* Checks the class for a {@link URLBeanName} annotation.
* 
* @param clazz Class to scan
*/
private void processPrettyBeanAnnotation(Class clazz)
{
 // get reference to @URLMapping annotation
 URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);
 // process annotation if it exists
 if (prettyBean != null)
 {
   // log class name
   if (log.isTraceEnabled())
   {
    log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
   }
   // add bean to map
   beanNameMap.put(clazz, prettyBean.value());
 }
}
origin: ocpsoft/prettyfaces

for (URLMapping child : mappingsAnnotation.mappings())
origin: ocpsoft/prettyfaces

@Override
public int hashCode()
{
 final int prime = 31;
 int result = 1;
 result = prime * result + (action == null ? 0 : action.hashCode());
 result = prime * result + (phaseId == null ? 0 : phaseId.hashCode());
 return result;
}
origin: ocpsoft/prettyfaces

else if (!phaseId.equals(other.phaseId))
origin: ocpsoft/prettyfaces

/**
* 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

/**
* Checks the class for a {@link URLBeanName} annotation.
* 
* @param clazz Class to scan
*/
private void processPrettyBeanAnnotation(Class clazz)
{
 // get reference to @URLMapping annotation
 URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);
 // process annotation if it exists
 if (prettyBean != null)
 {
   // log class name
   if (log.isTraceEnabled())
   {
    log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
   }
   // add bean to map
   beanNameMap.put(clazz, prettyBean.value());
 }
}
com.ocpsoft.pretty.faces.annotation

Most used classes

  • URLAction$PhaseId
    For use with URLAction#phaseId()
  • URLAction
  • URLActions
  • URLBeanName
  • URLMapping
  • URLQueryParameter,
  • URLValidator
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