Package org.jboss.ide.eclipse.as.core.server.bean

Examples of org.jboss.ide.eclipse.as.core.server.bean.ServerBeanLoader


      IProgressMonitor monitor) {
    if (monitor.isCanceled() || root == null) {
      return null;
    }
   
    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( FuseBeanProvider.FUSE_6x.equals(type)) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
      return runtimeDefinition;
View Full Code Here


  private void createFuseServerFromDefinitions(List<RuntimeDefinition> runtimeDefinitions) {
    for (RuntimeDefinition runtimeDefinition:runtimeDefinitions) {
      if (runtimeDefinition.isEnabled()) {
        File asLocation = runtimeDefinition.getLocation();
        if (asLocation != null && asLocation.isDirectory()) {
          String wtpServerType = new ServerBeanLoader(asLocation).getServerAdapterId();
          if( isFuseServerType(wtpServerType)) {
            String name = runtimeDefinition.getName();
            String runtimeName = name + " Runtime"; //$NON-NLS-1$
            createFuseServer(asLocation, wtpServerType, name, runtimeName);
          }
View Full Code Here

      IProgressMonitor monitor) {
    if (monitor.isCanceled() || root == null) {
      return null;
    }
   
    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( KarafBeanProvider.KARAF_2x.equals(type) ||
      KarafBeanProvider.KARAF_3x.equals(type) ) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
View Full Code Here

  private void createKarafServerFromDefinitions(List<RuntimeDefinition> runtimeDefinitions) {
    for (RuntimeDefinition runtimeDefinition:runtimeDefinitions) {
      if (runtimeDefinition.isEnabled()) {
        File asLocation = runtimeDefinition.getLocation();
        if (asLocation != null && asLocation.isDirectory()) {
          String wtpServerType = new ServerBeanLoader(asLocation).getServerAdapterId();
          if( isKarafServerType(wtpServerType)) {
            String name = runtimeDefinition.getName();
            String runtimeName = name + " Runtime"; //$NON-NLS-1$
            createKarafServer(asLocation, wtpServerType, name, runtimeName);
          }
View Full Code Here

  }

  @Override
  public String getVersion() {
    IPath loc = getRuntime().getLocation();
    ServerBean sb = new ServerBeanLoader(loc.toFile()).getServerBean();
    if( sb != null )
      return sb.getFullVersion();
    return null;
  }
View Full Code Here

   * @param monitor  the monitor
   * @return      the runtime working copy or null if invalid
   */
  public IRuntimeWorkingCopy getRuntimeFromDir(File dir, IProgressMonitor monitor) {
    String absolutePath = dir.getAbsolutePath();
    ServerBeanLoader l = new ServerBeanLoader(dir);
    ServerBean sb = l.getServerBean();
    if( sb != null ) {
      ServerBeanType type = sb.getBeanType();
      if( type != null ) {
        if( type.equals(KarafBeanProvider.KARAF_2x) ||
          type.equals(KarafBeanProvider.KARAF_3x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
View Full Code Here

   * @param monitor  the monitor
   * @return      the runtime working copy or null if invalid
   */
  public IRuntimeWorkingCopy getRuntimeFromDir(File dir, IProgressMonitor monitor) {
    String absolutePath = dir.getAbsolutePath();
    ServerBeanLoader l = new ServerBeanLoader(dir);
    ServerBean sb = l.getServerBean();
    if( sb != null ) {
      ServerBeanType type = sb.getBeanType();
      if( type != null ) {
        if( type.equals(FuseBeanProvider.FUSE_6x)) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
View Full Code Here

      IProgressMonitor monitor) {
    if (monitor.isCanceled() || root == null) {
      return null;
    }
   
    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( ServiceMixBeanProvider.SMX_4x.equals(type) ||
      ServiceMixBeanProvider.SMX_5x.equals(type) ) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
View Full Code Here

  private void createServiceMixServerFromDefinitions(List<RuntimeDefinition> runtimeDefinitions) {
    for (RuntimeDefinition runtimeDefinition:runtimeDefinitions) {
      if (runtimeDefinition.isEnabled()) {
        File asLocation = runtimeDefinition.getLocation();
        if (asLocation != null && asLocation.isDirectory()) {
          String wtpServerType = new ServerBeanLoader(asLocation).getServerAdapterId();
          if( isServiceMixServerType(wtpServerType)) {
            String name = runtimeDefinition.getName();
            String runtimeName = name + " Runtime"; //$NON-NLS-1$
            createServiceMixServer(asLocation, wtpServerType, name, runtimeName);
          }
View Full Code Here

   * @param monitor  the monitor
   * @return      the runtime working copy or null if invalid
   */
  public IRuntimeWorkingCopy getRuntimeFromDir(File dir, IProgressMonitor monitor) {
    String absolutePath = dir.getAbsolutePath();
    ServerBeanLoader l = new ServerBeanLoader(dir);
    ServerBean sb = l.getServerBean();
    if( sb != null ) {
      ServerBeanType type = sb.getBeanType();
      if( type != null ) {
        if( type.equals(ServiceMixBeanProvider.SMX_4x) ||
          type.equals(ServiceMixBeanProvider.SMX_5x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.as.core.server.bean.ServerBeanLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.