예제 #1
0
 private static Source resolve(String uri) throws MalformedURLException, IOException {
   SourceResolver resolver = null;
   TraversableSource source;
   try {
     resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);
     source = (TraversableSource) resolver.resolveURI(uri);
   } catch (ComponentException ce) {
     throw new IOException("ComponentException");
   } finally {
     manager.release((Component) resolver);
   }
   return source;
 }
예제 #2
0
 /** @see Composable#compose(ComponentManager) */
 public void compose(ComponentManager manager) throws ComponentException {
   this.manager = manager;
   this.panelSelector = (ComponentSelector) manager.lookup(Panel.ROLE + "Selector");
 }