问题描述
我不仅想知道什么是 Facet,还想知道什么是物理层面"的 Facet(据我所知,它不是一个单独的罐子,而是什么?)?
I wonder not only what is Facet but also what is Facet 'in physical level' (as I understand it's not a separate jar, but what?)?
我也想知道它在部署后如何影响我的应用程序.我会用真实的例子来解释:
I also wonder how can it affect my application after deploying. I'll explain on real example:
我有 2 个方面(由 IDE 创建):Spring Facet 和 Web Facet(用于 jsf).我将它部署到 Tomcat,我的应用程序运行良好.
I had 2 facets (which were created by IDE): Spring Facet and Web Facet (for jsf). I deployed it to Tomcat and my application worked fine.
然后我(通过 IDE)添加了另一个方面 - JPA 方面.我重新部署了应用程序,它仍然可以正常工作:)
Then I added (by means of IDE) one more facet - JPA Facet. I redeployed application and.. it still worked fine :)
所以,我很好奇那是什么,为什么我们需要它?
So, I'm just curious what is that and why do we need it?
推荐答案
这与 Java EE 无关.这是 IDE 相关的.该术语本身与编程无关.
This is not Java EE related. This is IDE related. The term is at its own not programming related.
来自 http://www.thefreedictionary.com/facet
fac·et (fst) n.
- 在宝石上切割或发生的平坦抛光表面之一自然地在水晶上.
- 解剖学小而光滑的平面,如骨骼或牙齿.
- 生物学 复眼的透镜状视觉单位之一,从昆虫.
- 作为主题的众多方面之一.请参阅 phase 中的同义词.
- One of the flat polished surfaces cut on a gemstone or occurring naturally on a crystal.
- Anatomy A small, smooth, flat surface, as on a bone or tooth.
- Biology One of the lenslike visual units of a compound eye, as of an insect.
- One of numerous aspects, as of a subject. See Synonyms at phase.
是 4.
在这种特定情况下,它只是要在项目中使用的一个方面,以便 IDE 可以在生成器、向导、自动包含库等方面拦截它.例如,如果您添加 JPA 方面,那么您将获得更多选择使用 JPA 的 IDE 魔术.
In this specific case it's just an aspect which is to be used in the project, so that the IDE can intercept on it with regard to generators, wizards, auto-include libraries and so on. If you add for example the JPA facet, then you will get more options to do the IDE-magic with JPA.
这篇关于JavaEE 中的“Facet"是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!