Package org.pipservices3.commons.refer
Class Reference
java.lang.Object
org.pipservices3.commons.refer.Reference
Contains a reference to a component and locator to find it.
It is used by
References
to store registered component references.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the stored component reference.Gets the stored component locator.boolean
Matches locator to this reference locator.
-
Constructor Details
-
Reference
Create a new instance of the reference object and assigns its values.- Parameters:
locator
- a locator to find the reference.reference
- a reference to component.- Throws:
NullPointerException
-
-
Method Details
-
match
Matches locator to this reference locator.Descriptors are matched using equal method. All other locator types are matched using direct comparison.
- Parameters:
locator
- the locator to match.- Returns:
- true if locators are matching and false it they don't.
- See Also:
-
getLocator
Gets the stored component locator.- Returns:
- the component's locator.
-
getComponent
Gets the stored component reference.- Returns:
- the component's references.
-