public class InlineStringReferenceBuilder extends Object implements ExternalReferenceBuilderSPI<InlineStringReference>
Constructor and Description |
---|
InlineStringReferenceBuilder() |
Modifier and Type | Method and Description |
---|---|
InlineStringReference |
createReference(InputStream byteStream,
ReferenceContext context)
Given a stream of bytes, build the appropriate target
ExternalReferenceSPI implementation which would de-reference to the value
of that stream and return it.
|
float |
getConstructionCost()
Return an approximate complexity cost of the reference construction.
|
Class<InlineStringReference> |
getReferenceType()
Expose the type of the ExternalReferenceSPI that this builder can
construct
|
boolean |
isEnabled(ReferenceContext context)
Because the reference builder may rely on facilities provided to it
through the context this method is available to check whether these
facilities are sufficient.
|
public InlineStringReference createReference(InputStream byteStream, ReferenceContext context)
ExternalReferenceBuilderSPI
createReference
in interface ExternalReferenceBuilderSPI<InlineStringReference>
byteStream
- the bytestream to read target from.context
- a reference resolution context, needed potentially to
construct the new ExternalReferenceSchemeSPI, especially in
cases where the context contains security agents giving access
to a remote data staging system *public float getConstructionCost()
ExternalReferenceBuilderSPI
getConstructionCost
in interface ExternalReferenceBuilderSPI<InlineStringReference>
public Class<InlineStringReference> getReferenceType()
ExternalReferenceBuilderSPI
getReferenceType
in interface ExternalReferenceBuilderSPI<InlineStringReference>
public boolean isEnabled(ReferenceContext context)
ExternalReferenceBuilderSPI
isEnabled
in interface ExternalReferenceBuilderSPI<InlineStringReference>
context
- the reference context that will be used to construct new
referencesCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.