public class FactoryFilter extends java.lang.Object implements IAsyncFilter
IAsyncFilter.AlwaysFilter, IAsyncFilter.NeverFilter
Modifier and Type | Field and 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.
|
ALWAYS, NEVER
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if equal.
|
IFuture<java.lang.Boolean> |
filter(java.lang.Object obj)
Test if an object passes the filter.
|
int |
hashCode()
Get the hashcode.
|
protected java.lang.String type
protected java.lang.String model
protected java.lang.String[] imports
protected IResourceIdentifier rid
public FactoryFilter(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)
model
- The model to be loaded.imports
- The imports (if any).classloader
- The class loader (if any).public FactoryFilter(java.lang.String type)
type
- The component type.public IFuture<java.lang.Boolean> filter(java.lang.Object obj)
filter
in interface IAsyncFilter
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object