uml - How represent a java functional interface in a component diagram -


In my class there is a field map that references a functional interface.

  Public abstract class AbstractResourceAgent {secure final map & lt; String, IInvokeOperation & gt; ResourceOperations; }  

Then I increase that square and in that map I create the anonymous aspects of that IInvokeOperation and add:

  public class agent enforcement AbstractResourceAgent expansion {@Override protected void descriptionResourceInvokeOperations () {setOperation ("Some Name", (Agent Operation Tagged Agent OPT arget) - & gt; {// do something ...}); }}  

Will this also show on component diagram?

You can specify the implementation details by & lt; & Lt; Use & gt; & Gt; Can show up on component diagram by adding a classifier with stereotype. This device is from ( override v 2.4.1):

 Enter an image description here

There is no reason why you could not place the base class there, if you thought it was important to do this.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -