public class FactoryFilter extends java.lang.Object implements IAsyncFilter<IComponentFactory>
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
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(IComponentFactory obj)
Test if an object passes the filter.
|
int |
hashCode()
Get the hashcode.
|
java.lang.String |
toString() |
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(IComponentFactory obj)
filter
in interface IAsyncFilter<IComponentFactory>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object