Package com.oracle.coherence.cdi
Class PofExtractor.Literal
- java.lang.Object
-
- com.oracle.coherence.cdi.AnnotationLiteral<PofExtractor>
-
- com.oracle.coherence.cdi.PofExtractor.Literal
-
- All Implemented Interfaces:
Annotation
- Enclosing class:
- PofExtractor
public static class PofExtractor.Literal extends AnnotationLiteral<PofExtractor> implements PofExtractor
An annotation literal for thePofExtractor
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.coherence.cdi.PofExtractor
PofExtractor.Extractors, PofExtractor.Literal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
index()
The POF indexes to use to extract a value.static PofExtractor.Literal
of(int... value)
Create aPofExtractor.Literal
.static PofExtractor.Literal
of(Class<?> type, int... value)
Create aPofExtractor.Literal
.static PofExtractor.Literal
of(Class<?> type, String sPath)
Create aPofExtractor.Literal
.String
path()
Returns a property path to use to extract the value.Class<?>
type()
The type being extracted.-
Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
-
-
-
Method Detail
-
of
public static PofExtractor.Literal of(int... value)
Create aPofExtractor.Literal
.- Parameters:
value
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
of
public static PofExtractor.Literal of(Class<?> type, int... value)
Create aPofExtractor.Literal
.- Parameters:
type
- the type to extract property fromvalue
- the POF indexes to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
of
public static PofExtractor.Literal of(Class<?> type, String sPath)
Create aPofExtractor.Literal
.- Parameters:
type
- the type to extract property fromsPath
- the property path to use to extract the value- Returns:
- a
PofExtractor.Literal
with the specified value
-
index
public int[] index()
The POF indexes to use to extract a value.- Returns:
- the POF indexes to use to extract a value
-
path
public String path()
Returns a property path to use to extract the value.This attribute can only be used in combination with the
type()
attribute, and only if the specified type is annotated with a@PortableType
annotation and instrumented usingPortableTypeGenerator
.- Returns:
- a property path to use to extract the value
-
type
public Class<?> type()
The type being extracted.- Returns:
- the type being extracted
-
-