MCPcopy Index your code
hub / github.com/OpenAS2/OpenAs2App / Component

Interface Component

Server/src/main/java/org/openas2/Component.java:18–64  ·  view source on GitHub ↗

The Component interface provides a standard way to dynamically create and initialize an object. Component-based objects also have access to a Session, which allow each component to access all components registered to it's Session. Parameters for a component are defined as static strings Note: A

Source from the content-addressed store, hash-verified

16 * @see Session
17 */
18public interface Component {
19 /**
20 * Returns a name for the component. These names are not guaranteed to be unique, and are
21 * intended for display and logging. Generally this is the class name of the
22 * Component object, without package information.
23 *
24 * @return name of the component
25 */
26 String getName();
27
28 /**
29 * Returns the parameters used to initialize this Component, and can also be used
30 * to modify parameters.
31 *
32 * @return map of parameter name to parameter value
33 */
34 Map<String, String> getParameters();
35
36 /**
37 * Returns the Session used to initialize this Component. The
38 * returned session is also used to locate other components if needed.
39 *
40 * @return this component's session
41 */
42 Session getSession();
43
44 /**
45 * Component lifecycle hook. After creating a Component object, this method should be called to set any
46 * parameters used by the component. Component implementations typically have
47 * required parameter checking and code to start timers and threads within this method.
48 *
49 * @param session the component uses this object to access other components
50 * @param parameters configuration values for the component
51 * @throws OpenAS2Exception If an error occurs while initializing the component
52 * @see Session
53 */
54 void init(Session session, Map<String, String> parameters) throws OpenAS2Exception;
55
56 /**
57 * Component lifecycle hook. If lifecycle of {@link Component} requires a destroy function this method can be used.
58 *
59 * @throws Exception Something went wrong
60 * @see #init(Session, Map)
61 * @see Session
62 */
63 void destroy() throws Exception;
64}

Callers 33

startMethod · 0.65
getPollingModuleMethod · 0.65
setUpMethod · 0.65
sendMessageMethod · 0.65
verifyMessageDeliveryMethod · 0.65
shouldBeParallelModeMethod · 0.65
start_A_ServerMethod · 0.65
setUpMethod · 0.65
getPartnershipPollerMethod · 0.65
loadPartnershipPollerMethod · 0.65
setFilenameMethod · 0.65
setPasswordMethod · 0.65

Implementers 2

BaseComponentServer/src/main/java/org/openas2/BaseC
BaseCommandProcessorServer/src/main/java/org/openas2/cmd/p

Calls

no outgoing calls

Tested by

no test coverage detected