VS级封装VS模块组件VS VS VS容器VS服务在Java世界的平台 [英] Class vs package vs module vs component vs container vs service vs platform in Java world

查看:202
本文介绍了VS级封装VS模块组件VS VS VS容器VS服务在Java世界的平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,Java世界(7岁低水平纯C的)。

I am newbie to Java world (7 years of low level plain C).

当我开始阅读与Java相关的网站:

When I start read Java related sites:

  • http://wiki.apidesign.org/wiki/Main_Page
  • http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/

我现有的术语迷惑:




  • 模块

  • 组件

  • 容器

  • 服务

  • 框架

  • 平台

我发现很多资源约条款的定义(以及更多):

I found many resources about terms definition (and a lot more):

  • Framework vs. Toolkit vs. Library
  • Difference between framework and container?
  • What are the containers in Java
  • Definition of a Java Container
  • http://martinfowler.com/articles/injection.html (Inversion of Control Containers and the Dependency Injection pattern)
  • http://www.cafeaulait.org/course/week8/36.html (What is a AWT Container?)
  • http://en.wikipedia.org/wiki/Web_container
  • http://netbeans.org/features/platform/ (The NetBeans Platform)
  • What is meant by "application framework"?
  • What is a framework? What does it do? Why do we need a framework
  • What is the difference between a framework and a library?
  • What is the difference between a class library and a framework
  • What is the difference between a JavaScript framework and a library?
  • What is the major difference between a framework and a toolkit?
  • http://blog.orderharmony.com/2011/07/libraries-vs-frameworks.html
  • http://www.javacodegeeks.com/2012/04/frameworks-vs-libraries-as-inheritance.html

但这些资源的定义他们自己的目的,我仍然不能明显的从分量一般情况下,例如模块。

but each of these resources define them on its own purpose and I still can't distinct for example module from component in general case.

请解释大局这些术语的意思是什么(可以是单级平台,做一个容器需要哪些模块的数量,等等)。

Please explain what means of these terms in big picture (can be single class a platform, what amount of modules is required to make a container, etc).

推荐答案


一类是用于创建基于类的面向对象编程对象的蓝图;你应该学会OOP的基本知识,了解什么是对象,一类是什么,什么是继承,多态,封装学习别的关于Java之前。

class A class is the blueprint for creating objects in class-based object-oriented programming; you should learn the basics of OOP and understand what an object is, what a class is, what is inheritance, polymorphism, encapsulation before learning anything else about Java.


包是一个命名空间;它让你处理命名冲突。它基本上可以让你有一个名为职工两班,如果他们在不同的包。

package A package is a namespace; it let's you handle naming conflicts. It basically lets you have two classes named Employee, if they are in different packages.

模块这可能是指的方式,Java库的销售和使用 - JAR,WAR,EAR

module It probably refers to the way that Java libraries are distributed and used - JAR, WAR, EAR.

组件可视为AWT基类的GUI(或JComponent中在Swing),也可以被看作是一种类型的EJB - 一个POJO(简单Java对象),以满足一些要求;有可能有其他含义,并且取决于上下文

component Can be regarded as the base class of GUI in AWT (or JComponent in Swing) or can be seen as a type of EJB - a POJO (Plain Old Java Object) that meets some requirements; it is possible to have other meanings and depends on context.

容器在企业应用中,你明明使用的一些库和Java EE最终;有关Java EE库的事情是,它仅提供了API接口,而不是实现。然后,你写和内置应用程序部署到容器服务器附带了Java EE API的实现。有两种类型的容器:Web容器(仅涉及到执行网络的具体技术)和完整的Java EE容器(自带实现Web和其他Java EE技术的 - 命名服务,持久性,事务等)

container In enterprise application you obviously use some libraries and Java EE eventually; the thing about the Java EE library is that it only provides the API interface and not implementation. Then, the application you have written and built is deployed into a container server which comes with the implementation of the Java EE API. There are two types of containers: web containers (only comes to implementation of web specific technologies) and full Java EE containers (comes with implementation of web and other Java EE technologies - naming services, persistence, transactions etc).

服务有在Java中没有特殊的意义。这可能与Web服务基本上提供对网络进程间通信的一个高层次的方法。

service There is no special meaning in Java. It may be related to web services which basically provide a high-level approach of Inter Process Communication over network.

平台有在Java中没有特殊的意义;它可以被看作是潜在的显影平台(Windows,Linux)或与云趋势它可以指平台作为一种服务,其中云提供商自带的基础设施和其他基本软件(操作系统,数据库,容器)。

platform There is no special meaning in Java; it can be seen as the underlying developing platform (Windows, Linux) or with the cloud trend it may refer to Platform-as-a-Service where the cloud provider comes with the infrastructure and other basic software (OS, database, container).

这篇关于VS级封装VS模块组件VS VS VS容器VS服务在Java世界的平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆