Skip to main content

Source code revision

svn

summary: Introduced a set of abstractions for GlassFish. They are: GlassFishRuntime: a runtime environment with GlassFish modules. This is a singleton.
revision: 38967
author: Sahoo
date: 2010-07-22 01:48:18 UTC (5 years)
message: Introduced a set of abstractions for GlassFish. They are:
GlassFishRuntime: a runtime environment with GlassFish modules. This is a singleton.
It is a factory for GlassFish.
GlassFish: an actual instance of GlassFish. It could mean a DAS or an instance.
It supports start/stop methods and a generic lookup method to access the service registry.
This allows GlassFish to be easily embedded.

These are currently part of org.glassfish.experimentalgfapi package. We will move
them to a more suitable package and module (perhaps glassfish-api) in future.

Switched the bootstrap modules to use these abstractions while using OSGi mode.
We have switched to using new OSGi r4.2 launcher API to launch OSGi frameworks.

This needs HK2 version 1.0.32.

With all these changes, I see a pretty good startup performance improvement - close to
20% in my system.

Additional Notes:
Felix cache is now located in domain_dir/osgi-cache/Felix/ as opposed to domain_dir/osgi-cache/felix/.
We now support property substitution in equinox config.ini. We will actually use just one config file
for all OSGi platforms.

TODO: Remove ASMainOSGi and its subclasses.
Change Path Actions
M trunk/v3/core/bootstrap/osgi.bundle
M trunk/v3/core/bootstrap/pom.xml
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASEmbedded.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMain.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMainEquinox.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMainHelper.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMainNonOSGi.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMainOSGi.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ASMainStatic.java
M trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/GlassFishActivator.java
A trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/GlassFishMain.java
A trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/OSGiGlassFishRuntime.java
A trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/OSGiGlassFishRuntimeBuilder.java
A trunk/v3/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/Util.java
A trunk/v3/core/bootstrap/src/main/java/org
A trunk/v3/core/bootstrap/src/main/java/org/glassfish
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/CommandRunner.java
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/Configurator.java
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/Constants.java
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/Deployer.java
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/GlassFish.java
A trunk/v3/core/bootstrap/src/main/java/org/glassfish/experimentalgfapi/GlassFishRuntime.java
A trunk/v3/core/bootstrap/src/main/resources
A trunk/v3/core/bootstrap/src/main/resources/META-INF
A trunk/v3/core/bootstrap/src/main/resources/META-INF/services
A trunk/v3/core/bootstrap/src/main/resources/META-INF/services/org.glassfish.experimentalgfapi.GlassFishRuntime$RuntimeBuilder
A trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/admin/DeployerImpl.java
M trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/admin/RestartServer.java
M trunk/v3/osgi-platforms/equinox/src/main/resources/glassfish/osgi/equinox/configuration/config.ini
M trunk/v3/osgi-platforms/felix/src/main/resources/glassfish/osgi/felix/conf/config.properties
M trunk/v3/osgi-platforms/felix/src/main/resources/glassfish/osgi/felix/conf/config.properties.nojaxb
M trunk/v3/pom.xml
 
 
Close
loading
Please Confirm
Close