Package hermes

Examples of hermes.JNDIContextFactory


      return config;
   }

   public JNDIContextFactory getContextFactory() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException
   {
      return new JNDIContextFactory(config);
   }
View Full Code Here


      }
      if (t.isDataFlavorSupported(HermesAdministeredObjectTransferable.FLAVOR)) {
        if (getSelectionPath().getLastPathComponent() instanceof NamingConfigTreeNode) {
          final NamingConfigTreeNode namingConfigTreeNode = (NamingConfigTreeNode) getSelectionPath().getLastPathComponent();
          final Collection objects = (Collection) t.getTransferData(HermesAdministeredObjectTransferable.FLAVOR);
          final JNDIContextFactory contextFactory = new JNDIContextFactory(namingConfigTreeNode.getConfig());
          final BindToolDialog bindTool = new BindToolDialog(HermesBrowser.getBrowser(), contextFactory, "", objects);

          bindTool.pack();
          JideSwingUtilities.centerWindow(bindTool);
          bindTool.show();
View Full Code Here

       Hermes.ui.getDefaultMessageSink().add("Creating InitialContext for "+ namingConfig.getId()) ;
      
       //
       // Create and populate the context bean...
      
       JNDIContextFactory contextBean = new JNDIContextFactory() ;
       ClassLoaderManager classLoaderManager = (ClassLoaderManager) SingletonManager.get(ClassLoaderManager.class) ;
      
       contextBean._setDelegateClassLoader(classLoaderManager.getClassLoader(namingConfig.getClasspathId())) ;
     
       LoaderSupport.populateBean(contextBean, namingConfig.getProperties()) ;
      
       Context rootContext = contextBean.createContext() ;
      
       ContextTreeNode rootNode = new ContextTreeNode(namingConfig.getId(), namingConfig, rootContext) ;
       ContextTreeModel model = new ContextTreeModel(contextBean, rootNode) ;
      
       Hermes.ui.getDefaultMessageSink().add("Finished searching InitialContext "+ namingConfig.getId()) ;
View Full Code Here

  }

  public Context createContext(String id) throws JMSException, NamingException, InvocationTargetException, IOException, IllegalAccessException,
      NoSuchMethodException {
    final NamingConfig config = getBrowserTree().getBrowserModel().getNamingConfigTreeNode(id).getConfig();
    final JNDIContextFactory factory = new JNDIContextFactory(config);
    return factory.createContext();
  }
View Full Code Here

            if (currentSelection == null || !currentSelection.equals(selectedConfig))
            {
                currentSelection = selectedConfig;

                bean = new JNDIContextFactory();

                LoaderSupport.populateBean(bean, propertySet);

                final Map properties = PropertyUtils.describe(bean);
                final List list = new ArrayList();
View Full Code Here

TOP

Related Classes of hermes.JNDIContextFactory

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.