Package io.sundr.adapter.api
Interface AdapterFactory<T,R,P,M>
-
public interface AdapterFactory<T,R,P,M>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Adapter<T,R,P,M>create(AdapterContext ctx)Create an instance ofAdapterfor the givenAdapterContext.Class<M>getMethodAdapterType()The type of method adapter this factory supports.Class<P>getPropertyAdapterType()The type of property adapter this factory supports.Class<R>getReferenceAdapterType()The type of reference adapter this factory supports.Class<T>getTypeAdapterType()The type of type adapter this factory supports.
-
-
-
Method Detail
-
getTypeAdapterType
Class<T> getTypeAdapterType()
The type of type adapter this factory supports.- Returns:
- the type
-
getReferenceAdapterType
Class<R> getReferenceAdapterType()
The type of reference adapter this factory supports.- Returns:
- the type
-
getMethodAdapterType
Class<M> getMethodAdapterType()
The type of method adapter this factory supports.- Returns:
- the type
-
getPropertyAdapterType
Class<P> getPropertyAdapterType()
The type of property adapter this factory supports.- Returns:
- the type
-
create
Adapter<T,R,P,M> create(AdapterContext ctx)
Create an instance ofAdapterfor the givenAdapterContext.- Parameters:
ctx- TheAdapterContext- Returns:
- the
Adapter
-
-