|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wlai.client.ApplicationViewPublisher
public class ApplicationViewPublisher
This class provides utility methods for interacting with the AI client manager EJBs for doing common design time tasks. This class is helpful for other environments outside the standard design-time framework provided by WLI.
Nested Class Summary | |
---|---|
static class |
ApplicationViewPublisher.HostAppInfo
|
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ApplicationViewPublisher()
|
Method Summary | |
---|---|
static File |
createOrUpdateChannelFile(IApplicationViewDescriptor avd,
File srcRepositoryRootDir,
ApplicationViewPublisher.HostAppInfo hostAppInfo)
Generate the .channel file for the given ApplicationView, and write it into the first available Schemas project within the app rooted at appRootDir. |
static File |
distributeApplicationViewResources(IApplicationViewDescriptor avd,
File srcRepositoryRootDir,
ApplicationViewPublisher.HostAppInfo hostAppInfo,
File tempDir)
For the ApplicationView represented by the given descriptor, collect all the resources referenced in the descriptor from the given source directory, and distribute them to the given application (in the repository dir for the app) |
static weblogic.j2ee.descriptor.ApplicationBean |
getApplicationDescriptor(File file,
ClassLoader loader)
|
static ApplicationViewPublisher.HostAppInfo |
getHostAppInfo(String appName,
File appRootDir)
|
static boolean |
isApplicationViewPublished(QualifiedName appViewQName,
String appName,
File appRootDir)
Is the ApplicationView given by appViewQName already published to the application given by appName and appRootDir? |
static boolean |
isWebAppProject(File projectDir)
|
static void |
main(String[] args)
|
static void |
printUsage()
|
static File |
publishApplicationView(IApplicationViewDescriptor avd,
boolean containerManagedSignOnEnabled,
File srcRepositoryRootDir,
String appName,
File appRootDir)
Compile and publish the given application view descriptor, given by the avd argument, to the J2EE app given by appName, and appRootDir. |
static File |
publishApplicationView(String appViewQName,
boolean containerManagedSignOnEnabled,
File srcRepositoryRootDir,
String appName,
File appRootDir)
Compile and publish the application view, with the given qualified name, to the J2EE app given by appName, and appRootDir. |
static void |
writeApplicationDescriptor(weblogic.j2ee.descriptor.ApplicationBean appBean,
File file,
ClassLoader loader)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ApplicationViewPublisher()
Method Detail |
---|
public static File publishApplicationView(String appViewQName, boolean containerManagedSignOnEnabled, File srcRepositoryRootDir, String appName, File appRootDir) throws DeploymentException
appViewQName
- The qualified name for the ApplicationView to publish.containerManagedSignOnEnabled
- If true, enable container-managed
sign-on for this ApplicationView.srcRepositoryRootDir
- The root directory of the AI repository from
which the ApplicationView artifacts will be retrieved during the
publish process.appName
- The name of the J2EE application that will receive the
newly published ApplicationView.appRootDir
- The root directory of the destination J2EE
application
DeploymentException
- If any communication error with the servlet
occurs, or the deployment fails for any reason.public static File publishApplicationView(IApplicationViewDescriptor avd, boolean containerManagedSignOnEnabled, File srcRepositoryRootDir, String appName, File appRootDir) throws DeploymentException
avd
- The deployment descriptor documentcontainerManagedSignOnEnabled
- If true, enable container-managed
sign-on for this ApplicationView.srcRepositoryRootDir
- The root directory of the AI repository from
which the ApplicationView artifacts will be retrieved during the
publish process.appName
- The name of the J2EE application that will receive the
newly published ApplicationView.appRootDir
- The root directory of the destination J2EE
application
DeploymentException
- If any communication error with the servlet
occurs, or the deployment fails for any reason.public static boolean isApplicationViewPublished(QualifiedName appViewQName, String appName, File appRootDir)
public static File distributeApplicationViewResources(IApplicationViewDescriptor avd, File srcRepositoryRootDir, ApplicationViewPublisher.HostAppInfo hostAppInfo, File tempDir) throws DeploymentException
avd
- The AppView descriptor to handle distribution forsrcRepositoryRootDir
- The source directory for gathering resourceshostAppInfo
- The target application's HostAppInfotempDir
- A temporary directory this method can use to generate temp
working files.
DeploymentException
- If any error occurs collecting or distributing
resources.public static File createOrUpdateChannelFile(IApplicationViewDescriptor avd, File srcRepositoryRootDir, ApplicationViewPublisher.HostAppInfo hostAppInfo) throws DeploymentException
DeploymentException
public static weblogic.j2ee.descriptor.ApplicationBean getApplicationDescriptor(File file, ClassLoader loader) throws IOException
IOException
public static void writeApplicationDescriptor(weblogic.j2ee.descriptor.ApplicationBean appBean, File file, ClassLoader loader) throws IOException
IOException
public static boolean isWebAppProject(File projectDir)
public static void printUsage()
public static void main(String[] args)
public static ApplicationViewPublisher.HostAppInfo getHostAppInfo(String appName, File appRootDir) throws DeploymentException
DeploymentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |