private Resolver<Target> targetResolver;
private Resolver<Subject> subjectResolver;
private Filter[] filters;
public Object getObject() throws Exception {
DefaultProvider p = null;
if (base != null) {
Constructor<? extends DefaultProvider> constructor =
providerClass.getConstructor(String.class);
p = constructor.newInstance(base);
} else {
p = providerClass.newInstance();
}
if( workspaceManager != null ) {
p.setWorkspaceManager( workspaceManager );
}
if (workspaces != null && workspaces.size() > 0) {
p.addWorkspaces(workspaces);
}
if (targetResolver != null) {
p.setTargetResolver(targetResolver);
}
if (subjectResolver != null) {
p.setSubjectResolver(subjectResolver);
}
if (filters != null && filters.length > 0) {
p.addFilter(filters);
}
return p;
}