Package org.apache.sling.models.impl.via
Class BeanPropertyViaProvider
java.lang.Object
org.apache.sling.models.impl.via.BeanPropertyViaProvider
- All Implemented Interfaces:
ViaProvider
-
Field Summary
Fields inherited from interface org.apache.sling.models.spi.ViaProvider
ORIGINAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdaptable
(Object original, String value) Get an adaptable using the value of the @Via annotation.Class<? extends ViaProviderType>
getType()
Return the marker class for use in the @Via annotation
-
Constructor Details
-
BeanPropertyViaProvider
public BeanPropertyViaProvider()
-
-
Method Details
-
getType
Description copied from interface:ViaProvider
Return the marker class for use in the @Via annotation- Specified by:
getType
in interfaceViaProvider
- Returns:
- the marker class
-
getAdaptable
Description copied from interface:ViaProvider
Get an adaptable using the value of the @Via annotation.- Specified by:
getAdaptable
in interfaceViaProvider
- Parameters:
original
- the original adaptablevalue
- the value of the @Via annotation- Returns:
- the projected adaptable
-