1 16 17 package org.apache.jetspeed.daemon.impl.util.feeddaemon; 18 19 import org.apache.jetspeed.services.logging.JetspeedLogFactoryService; 21 import org.apache.jetspeed.services.logging.JetspeedLogger; 22 import org.apache.jetspeed.services.threadpool.ThreadPool; 23 import org.apache.jetspeed.services.Registry; 24 import org.apache.jetspeed.om.registry.PortletEntry; 25 26 27 34 public class EntryInstantiator { 35 36 private PortletEntry[] entries = null; 37 38 41 private static final JetspeedLogger logger = JetspeedLogFactoryService.getLogger(EntryInstantiator.class.getName()); 42 43 46 public EntryInstantiator( PortletEntry[] entries ) { 47 super(); 48 this.entries = entries; 49 } 50 51 public void process() { 52 53 if ( logger.isInfoEnabled() ) 54 { 55 logger.info( "BEGIN: EntryInstantiator: Instantiating " + 56 Registry.get(Registry.PORTLET).getEntryCount() + 57 " Portlet(s) found in the PortletRegistry" ); 58 } 59 60 for( int i = 0; i < entries.length; ++i ) { 61 62 Instantiator inst = new Instantiator( i, entries[i] ); 63 ThreadPool.process( inst ); 64 65 } 66 67 logger.info( "END: EntryInstantiator: Instantiating all Portlets found in the PortletRegistry" ); 68 69 } 70 71 } 72 73 74 75 76 | Popular Tags |