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[]
imports
The imports (if any).protected java.lang.String
model
The model to be loaded.protected IResourceIdentifier
rid
The resource identifier.protected java.lang.String
type
The 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 boolean
equals(java.lang.Object obj)
Test if equal.IFuture<java.lang.Boolean>
filter(IComponentFactory obj)
Test if an object passes the filter.int
hashCode()
Get the hashcode.java.lang.String
toString()
-
-
-
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:
filter
in interfaceIAsyncFilter<IComponentFactory>
- Returns:
- True, if passes the filter.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-