|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ConnectorBase.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* ConnectorBase.java
|
|
| 3 |
* Copyright 2002-2004 Bill2, Inc.
|
|
| 4 |
*
|
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
| 6 |
* you may not use this file except in compliance with the License.
|
|
| 7 |
* You may obtain a copy of the License at
|
|
| 8 |
*
|
|
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
| 10 |
*
|
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
| 14 |
* See the License for the specific language governing permissions and
|
|
| 15 |
* limitations under the License.
|
|
| 16 |
*/
|
|
| 17 |
package org.dentaku.foundation.connector;
|
|
| 18 |
|
|
| 19 |
import org.dentaku.foundation.event.AbstractEvent;
|
|
| 20 |
import org.dentaku.foundation.pipeline.Pipeline;
|
|
| 21 |
|
|
| 22 |
/**
|
|
| 23 |
* Classes extending ConnectorBase are designed to be the entry point into the Dentaku architecture and
|
|
| 24 |
* are generally used by so called "front controllers". The container is instantiated and maintained here.
|
|
| 25 |
* This allows compatibility with front controllers that are not IOC aware.
|
|
| 26 |
*/
|
|
| 27 |
public abstract class ConnectorBase implements Connector { |
|
| 28 |
/**
|
|
| 29 |
* Default Container.
|
|
| 30 |
*/
|
|
| 31 |
protected Pipeline pipeline;
|
|
| 32 |
protected Connector connector;
|
|
| 33 |
|
|
| 34 | 1 |
public Pipeline getPipeline() {
|
| 35 | 1 |
return pipeline;
|
| 36 |
} |
|
| 37 |
|
|
| 38 |
/**
|
|
| 39 |
* @param event
|
|
| 40 |
* @throws Exception
|
|
| 41 |
* @ejb.interface-method
|
|
| 42 |
*/
|
|
| 43 | 1 |
public void fireEvent(AbstractEvent event) throws Exception { |
| 44 | 1 |
pipeline.execute(event); |
| 45 |
} |
|
| 46 |
} |
|
| 47 |
|
|
||||||||||