Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client
Interface AdapterFactory<T>

All Known Implementing Classes:
DocumentServiceFactory

public interface AdapterFactory<T>

A factory for adapters. Adapters can be used to adapt client and session objects. For example you can contribute an adapter on the session to have an API suited for your needs.

To register adapters use AutomationClient.registerAdapter(AdapterFactory).

Author:
Bogdan Stefanescu

Method Summary
 Class<?> getAcceptType()
          The class to adapt.
 T getAdapter(Object toAdapt)
          Adapt the given object and return the adapter instance.
 Class<T> getAdapterType()
          The adapter class.
 

Method Detail

getAcceptType

Class<?> getAcceptType()
The class to adapt.

Returns:

getAdapterType

Class<T> getAdapterType()
The adapter class.

Returns:

getAdapter

T getAdapter(Object toAdapt)
Adapt the given object and return the adapter instance.

Parameters:
toAdapt -
Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.