java facet 是什么,JavaEE中的“Facet”是什么?

Facet在IDE中是一个项目方面,用于针对特定技术(如JPA、Spring、Web等)进行配置。它包含了IDE用来生成代码、提供向导和自动包含库等功能的设置。例如,添加JPA Facet会为IDE提供处理JPA相关任务的更多选项,但即使不添加,应用也可能正常工作。Facet主要影响IDE的工作流程,而非部署后的应用程序行为。
摘要由CSDN通过智能技术生成

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:

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.

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?

解决方案

This is not Java EE related. This is IDE related. The term is at its own not programming related.

fac·et (fst) n.

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.

It's 4.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值