- java.lang.Object
-
- com.pervasive.datarush.coercion.LiveConnectAdviceManager
-
public final class LiveConnectAdviceManager extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveConnectAdvice
getAdviceForClass(Class<?> clazz)
Returns the advice associated with the given class.Collection<LiveConnectAdvice>
getAllAdvice()
Returns all registered advice.static LiveConnectAdviceManager
getDefault()
Returns the default instance.LiveConnectAdviceManager
withAdvice(LiveConnectAdvice advice)
Returns a new manager, equivalent to this, but with the additional live connect advice.
-
-
-
Method Detail
-
getDefault
public static LiveConnectAdviceManager getDefault()
Returns the default instance. The default instance is initialized via service lookup of theLiveConnectAdvice
.- Returns:
- the default instance
-
getAdviceForClass
public LiveConnectAdvice getAdviceForClass(Class<?> clazz)
Returns the advice associated with the given class.- Parameters:
clazz
- the class to lookup- Returns:
- the advice associated with the given class.
-
getAllAdvice
public Collection<LiveConnectAdvice> getAllAdvice()
Returns all registered advice.- Returns:
- all registered advice
-
withAdvice
public LiveConnectAdviceManager withAdvice(LiveConnectAdvice advice)
Returns a new manager, equivalent to this, but with the additional live connect advice.- Parameters:
advice
- the additional live connect advice- Returns:
- a new manager
-
-