Package com.iizix.prop.vs
Class FullVSAnnotationReferenceProcessor
- java.lang.Object
- com.iizix.prop.vs.FullVSAnnotationReferenceProcessor
- All Implemented Interfaces:
IAnnotationReferenceProcessor<VirtualSpace,VirtualSpace>
public class FullVSAnnotationReferenceProcessor extends java.lang.Object implements IAnnotationReferenceProcessor<VirtualSpace,VirtualSpace>
The VirtualSpace reference processor used for the @FullVSRef annotation.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description FullVSAnnotationReferenceProcessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReferencePath(GProp<?> comp)
Returns the reference path of a component.java.lang.Class<VirtualSpace>
getScopeClass()
Returns the class for the scope reference.VirtualSpace
resolveReference(GProp<?> scope, java.lang.String reference)
Resolves a reference name to the VirtualSpace.
Method Detail
getScopeClass
public java.lang.Class<VirtualSpace> getScopeClass()
Returns the class for the scope reference.- Specified by:
getScopeClass
in interfaceIAnnotationReferenceProcessor<VirtualSpace,VirtualSpace>
- Returns:
- null for none.
resolveReference
public VirtualSpace resolveReference(GProp<?> scope, java.lang.String reference) throws PropTypeException, NotFoundException
Resolves a reference name to the VirtualSpace.- Specified by:
resolveReference
in interfaceIAnnotationReferenceProcessor<VirtualSpace,VirtualSpace>
- Parameters:
scope
- The scope, in this case any property of the Module Project.reference
- The reference to the VirtualSpace.- Returns:
- The VirtualSpace found, never null.
- Throws:
PropTypeException
- If the property is not found or if the property is of wrong type.NotFoundException
- If the component is not found.
getReferencePath
public java.lang.String getReferencePath(GProp<?> comp) throws java.lang.IllegalStateException, PropTypeException
Returns the reference path of a component.- Specified by:
getReferencePath
in interfaceIAnnotationReferenceProcessor<VirtualSpace,VirtualSpace>
- Parameters:
comp
- The component.- Returns:
- The reference path to the VirtualSpace.
- Throws:
java.lang.IllegalStateException
- If the tree is invalid.PropTypeException
- If the property type is invalid, i.e. not a VirtualSpace.