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.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
Fields 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.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors 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 Summary
All 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
-
type
protected java.lang.String type
The component type.
-
model
protected java.lang.String model
The model to be loaded.
-
imports
protected java.lang.String[] imports
The imports (if any).
-
rid
protected IResourceIdentifier rid
The resource identifier.
-
-
Constructor Detail
-
FactoryFilter
public 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).
-
FactoryFilter
public FactoryFilter(java.lang.String type)
Find a component factory for loading a specific component type.- Parameters:
type- The component type.
-
-
Method Detail
-
filter
public IFuture<java.lang.Boolean> filter(IComponentFactory obj)
Test if an object passes the filter.- Specified by:
filterin interfaceIAsyncFilter<IComponentFactory>- Returns:
- True, if passes the filter.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-