ListenerMetaData listener = new ListenerMetaData();
listener.setListenerClass(paClassName);
listeners.add(listener);
// synthesize WebComponent
WebComponentDescription paWebComponent = new WebComponentDescription(paClassName,
paClassName,
eeModuleDescription,
deploymentUnit.getServiceName(),
eeApplicationClasses);
eeModuleDescription.addComponent(paWebComponent);
deploymentUnit.getAttachment(WebAttachments.WEB_COMPONENT_INSTANTIATORS).put(paWebComponent.getComponentClassName(), new WebComponentInstantiator(deploymentUnit, paWebComponent));
paComponent = paWebComponent;
} else {
// lookup the existing component