com.ibm.wsspi.al
Class ALFactory
- java.lang.Object
com.ibm.wsspi.al.ALFactory
- public class ALFactory
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
COPYRIGHT
Copyright
|
Constructor Summary
Constructor and Description |
---|
ALFactory()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
create(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile)
Create an ArtifactLoader instance.
|
|
create(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile,com.ibm.websphere.management.application.Scheduler scheduler)
Create a ArtifactLoader instance, for use from application install or sync tasks.
|
|
create(java.lang.String path)
Create an ArtifactLoader based on a file directory.
|
|
remove(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile)
Remove the instance AL created based on an Archive (ear file).
|
|
remove(java.lang.String path)
Remove an ArtifactLoader instance that is created by ALFactory.create(String path);
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
COPYRIGHT
- public static final java.lang.String COPYRIGHT
Copyright
See Also:
Constructor Detail
ALFactory
- public ALFactory()
Method Detail
create
- public static ArtifactLoader create( java.lang.String path)
Create an ArtifactLoader based on a file directory.
When executed in the application server environment, the created profile will include
shared library archives referenced, searching the current process application (bla)
or global library.
Parameters:
path
- the path to a file directory which will be the scope of
newly created AL. Returns:
ArtifactLoader a AL instance whose visibility scope is the file directory.
create
- public static ArtifactLoader create( org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile,
- com.ibm.websphere.management.application.Scheduler scheduler)
Create a ArtifactLoader instance, for use from application install or sync tasks.
When executed in the application server environment, the created profile will include
shared library archives referenced, searching the current process application (bla)
or global library.
The ALFactory.create(Archive) signature requires application installation completion in order
to search for required libraries. Use this signature when application install is in progress,
providing the Scheduler instance provided to the task.
Parameters:
earFile
- Returns:
the ArtifactLoader instance
create
- public static ArtifactLoader create( org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile)
Create an ArtifactLoader instance.
When executed in the application server environment, the created profile will include
shared library archives referenced, searching the current process application (bla)
or global library.
The application must be installed in order to search for the libraries. If application installation
is currently in progress, use create(Archive,Scheduler) instead.
Parameters:
earFile
- Returns:
the ArtifactLoader instance
Throws:
java.lang.IllegalArgumentException
- if the application does not exist in the configuration repository remove
- public static void remove(org.eclipse.jst.j2ee.commonarchivecore.internal.Archive earFile)
Remove the instance AL created based on an Archive (ear file).
Parameters:
earFile
- an commmon archive (ear file), can not be null. remove
- public static void remove(java.lang.String path)
Remove an ArtifactLoader instance that is created by ALFactory.create(String path);
Parameters:
path
-