public interface ContentWorkerSelector<W extends ContentWorker>
The notion of supplying some type of worker looks a bit odd here, but really an instance of this type will act as an optional factory. Also, in the context of the calling class, the context and the generics will identify exactly which type is returned by the factory.
Modifier and Type | Method and Description |
---|---|
W |
getWorker(org.alfresco.service.cmr.repository.ContentReader reader)
Provides an worker appropriate to the given content, if possible.
|
W getWorker(org.alfresco.service.cmr.repository.ContentReader reader)
reader
- the content reader, providing the actual stream metadata
and even the stream, if required.org.alfresco.service.cmr.repository.ContentIOException
- if the search failsCopyright © 2005–2017 Alfresco Software. All rights reserved.