Package jadex.bridge
Class FactoryFilter
- java.lang.Object
- 
- jadex.bridge.FactoryFilter
 
- 
- All Implemented Interfaces:
- IAsyncFilter<IComponentFactory>
 
 public class FactoryFilter extends java.lang.Object implements IAsyncFilter<IComponentFactory> Filtering specific component factories. a) per model type (bdi, mirco, etc.) b) per model filename
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilterIAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.String[]importsThe imports (if any).protected java.lang.StringmodelThe model to be loaded.protected IResourceIdentifierridThe resource identifier.protected java.lang.StringtypeThe component type.- 
Fields inherited from interface jadex.commons.IAsyncFilterALWAYS, NEVER
 
- 
 - 
Constructor SummaryConstructors Constructor Description FactoryFilter(java.lang.String type)Find a component factory for loading a specific component type.FactoryFilter(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)Find a matching component factory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if equal.IFuture<java.lang.Boolean>filter(IComponentFactory obj)Test if an object passes the filter.inthashCode()Get the hashcode.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
typeprotected java.lang.String type The component type.
 - 
modelprotected java.lang.String model The model to be loaded.
 - 
importsprotected java.lang.String[] imports The imports (if any).
 - 
ridprotected IResourceIdentifier rid The resource identifier.
 
- 
 - 
Constructor Detail- 
FactoryFilterpublic FactoryFilter(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)Find a matching component factory.- Parameters:
- model- The model to be loaded.
- imports- The imports (if any).
- classloader- The class loader (if any).
 
 - 
FactoryFilterpublic FactoryFilter(java.lang.String type) Find a component factory for loading a specific component type.- Parameters:
- type- The component type.
 
 
- 
 - 
Method Detail- 
filterpublic IFuture<java.lang.Boolean> filter(IComponentFactory obj) Test if an object passes the filter.- Specified by:
- filterin interface- IAsyncFilter<IComponentFactory>
- Returns:
- True, if passes the filter.
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-