1. A method of sharing data in a stream processing environment, said method comprising: obtaining, by a processor of the stream processing environment, at least one of usage information for shared data of the stream processing environment, one or more pre-declared characteristics of the shared data, or performance information relating to the stream processing environment; and generating, by the processor based on at least one of the usage information, the one or more pre-declared characteristics or the performance information, code for managing the shared data.