de.smartics.properties.spi.config.proxy
Class PropertyMethodNameUtilities

Package class diagram package PropertyMethodNameUtilities
java.lang.Object
  extended by de.smartics.properties.spi.config.proxy.PropertyMethodNameUtilities

public final class PropertyMethodNameUtilities
     
     
extends Object

Helper.


Method Summary
static Method fetchPropertyMethod(Method m)
          Helper that determines the property method that belongs to the method given.
static
<T extends Annotation>
boolean
isMethodAnnotatedWithAnnotation(Class<T> annotation, Method m)
          Determine whether or not the given method is annotated with a special annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fetchPropertyMethod

public static Method fetchPropertyMethod(Method m)
Helper that determines the property method that belongs to the method given.

Parameters:
m - the method whose property method shall be determined.
Returns:
the property method for the given method.

isMethodAnnotatedWithAnnotation

public static <T extends Annotation> boolean isMethodAnnotatedWithAnnotation(Class<T> annotation,
                                                                             Method m)
Determine whether or not the given method is annotated with a special annotation.

Type Parameters:
T - to limit the parameter to Annotations.
Parameters:
annotation - the annotation that shall be detected.
m - the method whose annotation shall be checked.
Returns:
true if the given method is annotated wit the given annotation, false otherwise.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.