
com.marklogic.client.io.marker.ContentHandleFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-client-api Show documentation
Show all versions of marklogic-client-api Show documentation
The official MarkLogic Java client API.
The newest version!
/*
* Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
*/
package com.marklogic.client.io.marker;
/**
* A ContentHandleFactory creates instances of a ContentHandle that provides
* an adapter for an IO representation.
* @see ContentHandle
*/
public interface ContentHandleFactory {
/**
* Returns classes that the handle always supports;
* @return the classes if any
*/
Class>[] getHandledClasses();
/**
* Returns true if the factory can create a handle for instances
* of the IO class.
* @param type the class of the IO representation
* @return whether the factory can create a handle
*/
boolean isHandled(Class> type);
/**
* Instantiates a handle for an IO class recognized by the factory.
* @param type the class of the IO representation
* @param the registered type which will be handled by the returned
* ContentHandle
* @return the handle or null if the class is unrecognized
*/
ContentHandle newHandle(Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy