Package it.unive.lisa
Class LiSAFactory.ConfigurableComponent<T>
- java.lang.Object
-
- it.unive.lisa.LiSAFactory.ConfigurableComponent<T>
-
- Type Parameters:
T- the type of the component
- Enclosing class:
- LiSAFactory
public static final class LiSAFactory.ConfigurableComponent<T> extends java.lang.ObjectAn analysis component that can be configured, that is, it has more than one implementation that can be modularly integrated into the analysis.getComponent()yields the component itself, i.e. the interface or abstract class that defines the analysis components.getDefaultInstance()yields the default implementation of the component that will be used if no specific implementation is requested.getAlternatives()yields all the concrete implementations of the components.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Collection<java.lang.Class<? extends T>>getAlternatives()Yields the alternatives for this component, that is, the concrete classes that implements it.java.lang.Class<T>getComponent()Yields the component represented by thisLiSAFactory.ConfigurableComponent.java.lang.Class<? extends T>getDefaultInstance()Yields the default implementation for this component, that is, the concrete class that implements it and that will be used if the component is requested but the user did not specify which implementation to use (among the ones offered bygetAlternatives().inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getComponent
public java.lang.Class<T> getComponent()
Yields the component represented by thisLiSAFactory.ConfigurableComponent.- Returns:
- the analysis component
-
getDefaultInstance
public java.lang.Class<? extends T> getDefaultInstance()
Yields the default implementation for this component, that is, the concrete class that implements it and that will be used if the component is requested but the user did not specify which implementation to use (among the ones offered bygetAlternatives().- Returns:
- the default implementation for this component
-
getAlternatives
public java.util.Collection<java.lang.Class<? extends T>> getAlternatives()
Yields the alternatives for this component, that is, the concrete classes that implements it.- Returns:
- the alternatives for this component
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-