establishDefaultParameters();
}
private void searchForComponent(IRequestCycle cycle)
{
INamespace namespace = getNamespace();
if (LOG.isDebugEnabled())
LOG.debug("Resolving unknown component '" + _type + "' in " + namespace);
String expectedName = _type + ".jwc";
IResourceLocation namespaceLocation = namespace.getSpecificationLocation();
// Look for appropriate file in same folder as the library (or application)
// specificaiton.
if (found(namespaceLocation.getRelativeLocation(expectedName)))
return;
if (namespace.isApplicationNamespace())
{
// The application namespace gets some extra searching.
if (found(getWebInfAppLocation().getRelativeLocation(expectedName)))
return;
if (found(getWebInfLocation().getRelativeLocation(expectedName)))
return;
if (found(getApplicationRootLocation().getRelativeLocation(expectedName)))
return;
}
// Not in the library or app spec; does it match a component
// provided by the Framework?
INamespace framework = getSpecificationSource().getFrameworkNamespace();
if (framework.containsComponentType(_type))
{
setSpecification(framework.getComponentSpecification(_type));
return;
}
IComponentSpecification specification =
getDelegate().findComponentSpecification(cycle, namespace, _type);