Class BundleProvisioner.DefaultCustomizer
- java.lang.Object
-
- com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.DefaultCustomizer
-
- Enclosing class:
- BundleProvisioner
public static class BundleProvisioner.DefaultCustomizer extends Object
This is default implementation ofBundleProvisioner.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 byBundle.start(int)
method. The default is to useBundle.START_ACTIVATION_POLICY
. It also means bundles will be started persistently by default. To start transiently, one has to specify explicitly.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomizer(Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<URI>
getAutoInstallLocations()
List<URI>
getAutoStartLocations()
protected List<URI>
getConfiguredAutoInstallLocations()
Integer
getStartLevel(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
int
getStartOptions()
protected boolean
isDirectory(URI uri)
Is this URI a directory?boolean
isManaged(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
protected List<? extends URI>
listJarFiles(URI aDirectoryURI)
String
makeLocation(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
-
-
-
Constructor Detail
-
DefaultCustomizer
public DefaultCustomizer(Properties config)
-
-
Method Detail
-
getStartOptions
public int getStartOptions()
-
makeLocation
public String makeLocation(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
-
isDirectory
protected boolean isDirectory(URI uri)
Is this URI a directory?- Parameters:
uri
- URI to be checked- Returns:
- true if this URI represents a directory, else false.
-
listJarFiles
protected List<? extends URI> listJarFiles(URI aDirectoryURI)
- Parameters:
aDirectoryURI
- uri corresponding to a directory location which will be searched.- Returns:
- URIs corresponding to jar files in a given directory location.
-
isManaged
public boolean isManaged(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
-
getStartLevel
public Integer getStartLevel(com.sun.enterprise.glassfish.bootstrap.osgi.Jar jar)
-
-