public static class BundleProvisioner.DefaultCustomizer extends Object
Customizer which uses the URI of the Jar as location.
The default customizer uses following configuration properties:
glassfish.osgi.auto.install:
This contains white space delimited list of absolute URIs to be installed.
If a URI represents a directory location, then it will be treated as if all the jar files from that
directory location (non-recursive) were specified instead.
Bundles will be installed in the same order they are specified.
glassfish.osgi.auto.start:
This contains white space delimited list of absolute URIs to be started.
If a URI represents a directory location, then it will be treated as if all the jar files from that
directory location (non-recursive) were specified instead. Although bundles will be started in the order
they are specified in this list, their eventual activation order depends on start level and/or activation policy.
glassfish.osgi.auto.start.level.N, where N is > 0
This contains list of bundle URIs to be started at start level N.
glassfish.osgi.auto.start.option:
This specifies the options used to start bundles. It is an integer and must confirm to the format accepted by
Bundle.start(int) method. The default is to use Bundle.START_ACTIVATION_POLICY. It also means
bundles will be started persistently by default. To start transiently, one has to specify explicitly.| Constructor and Description |
|---|
DefaultCustomizer(Properties config) |
| Modifier and Type | Method and Description |
|---|---|
List<URI> |
getAutoInstallLocations()
Return list of locations from where bundles are installed.
|
List<URI> |
getAutoStartLocations()
Return list of locations from where bundles are started.
|
protected List<URI> |
getConfiguredAutoInstallLocations() |
Integer |
getStartLevel(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar) |
int |
getStartOptions()
Options used in Bundle.start().
|
protected boolean |
isDirectory(URI uri)
Is this URI a directory?
|
boolean |
isManaged(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
Is this jar managed by us?
|
protected List<? extends URI> |
listJarFiles(URI aDirectoryURI) |
String |
makeLocation(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar) |
public DefaultCustomizer(Properties config)
public List<URI> getAutoInstallLocations()
public List<URI> getAutoStartLocations()
getAutoInstallLocations()public int getStartOptions()
public String makeLocation(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
jar - jar to be installed as bundleprotected boolean isDirectory(URI uri)
uri - URI to be checkedprotected List<? extends URI> listJarFiles(URI aDirectoryURI)
aDirectoryURI - uri corresponding to a directory location which will be searched.public boolean isManaged(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
public Integer getStartLevel(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
Copyright © 2019. All rights reserved.