Standard implementation of the Service interface. The associated Container is generally an instance of Engine, but this is not required.
| 49 | */ |
| 50 | |
| 51 | public class StandardService extends LifecycleMBeanBase implements Service { |
| 52 | |
| 53 | /** |
| 54 | * Construct a new {@link StandardService} instance with the default settings. |
| 55 | */ |
| 56 | public StandardService() { |
| 57 | super(); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | private static final Log log = LogFactory.getLog(StandardService.class); |
| 62 | private static final StringManager sm = StringManager.getManager(StandardService.class); |
| 63 | |
| 64 | |
| 65 | // ----------------------------------------------------- Instance Variables |
| 66 | |
| 67 | /** |
| 68 | * The name of this service. |
| 69 | */ |
| 70 | private String name = null; |
| 71 | |
| 72 | |
| 73 | /** |
| 74 | * The <code>Server</code> that owns this Service, if any. |
| 75 | */ |
| 76 | private Server server = null; |
| 77 | |
| 78 | /** |
| 79 | * The property change support for this component. |
| 80 | */ |
| 81 | protected final PropertyChangeSupport support = new PropertyChangeSupport(this); |
| 82 | |
| 83 | |
| 84 | /** |
| 85 | * The set of Connectors associated with this Service. |
| 86 | */ |
| 87 | protected Connector[] connectors = new Connector[0]; |
| 88 | private final ReadWriteLock connectorsLock = new ReentrantReadWriteLock(); |
| 89 | |
| 90 | /** |
| 91 | * The list of executors held by the service. |
| 92 | */ |
| 93 | protected final ArrayList<Executor> executors = new ArrayList<>(); |
| 94 | private final ReadWriteLock executorsLock = new ReentrantReadWriteLock(); |
| 95 | |
| 96 | private Engine engine = null; |
| 97 | |
| 98 | private ClassLoader parentClassLoader = null; |
| 99 | |
| 100 | /** |
| 101 | * Mapper. |
| 102 | */ |
| 103 | protected final Mapper mapper = new Mapper(); |
| 104 | |
| 105 | |
| 106 | /** |
| 107 | * Mapper listener. |
| 108 | */ |
nothing calls this directly
no test coverage detected