1 9 package org.jboss.portal.server.kernel; 10 11 import java.util.HashSet ; 12 import java.util.Set ; 13 14 import org.apache.log4j.Logger; 15 import org.jboss.portal.server.kernel.state.State; 16 17 21 class Entry implements Context 22 { 23 24 final Logger log; 25 final Kernel kernel; 26 final ServiceID id; 27 final ServiceState machine; 28 final Set depends; 29 final Set dependsOnMe; 30 Implementation implementation; 31 32 33 public Entry(Kernel kernel, ServiceID id) 34 { 35 this.log = Logger.getLogger(Kernel.class.getName() + "." + id.toString()); 36 this.kernel = kernel; 37 this.id = id; 38 this.machine = new ServiceState(this); 39 this.depends = new HashSet (); 40 this.dependsOnMe = new HashSet (); 41 this.implementation = null; 42 } 43 44 public State getState() 45 { 46 return machine.getState(); 47 } 48 49 public ServiceID getID() 50 { 51 return id; 52 } 53 } 54 | Popular Tags |