Add method publish to Component, implement in all components.