Package java.lang

Examples of java.lang.Object


            XInterface xCfgAccess = (XInterface) myConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", new Object[]{sNodeName, new Integer(-1)});           
          com.sun.star.container.XNameAccess xNode = (com.sun.star.container.XNameAccess)UnoRuntime.queryInterface(com.sun.star.container.XNameAccess.class,xCfgAccess);
          // PropertySet ( geht noch nicht -> bug )
          // com.sun.star.beans.XPropertySetInfo xNodeProper = (com.sun.star.beans.XPropertySetInfo)UnoRuntime.queryInterface(com.sun.star.beans.XPropertySetInfo.class,xCfgAccess);
          //
          Object myNode = xNode.getByName(sValueName);
            if (myNode instanceof XInterface)
            {
                myprintln("It's a node not a value");
            }
            else
View Full Code Here


    XConnection xConn    = xConnector.connect("socket,host=localhost,port=6001");
    if(xConn == null) System.err.println("no XConnection!");

    IBridge iBridge = UnoRuntime.getBridgeByName("java", null, "remote", null, new Object[]{"iiop", xConn, null});

    Object rInitialObject = iBridge.mapInterfaceFrom("classic_uno", XInterface.class);

    if(rInitialObject != null)
    {
      System.err.println("got the remote object");
      System.out.println("before naming service !");
      try
      {
        XNamingService rName = (XNamingService)UnoRuntime.queryInterface(XNamingService.class, rInitialObject );
        try
        {
          if(rName != null)
          {
            System.err.println("got the remote naming service !");
            Object rXsmgr = rName.getRegisteredObject("StarOffice.ServiceManager");
            XMultiServiceFactory rSmgr = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, rXsmgr);
            if(rSmgr != null)
            {
              System.out.println("got the remote service manager !");
              Object rDriver = rSmgr.createInstance("com.sun.star.sdbc.ADriver");
              if(rDriver != null)
              {
                System.out.println("got a com.sun.star.sdbc.Driver !");
                com.sun.star.sdbc.XDriver  xDriver  = (XDriver)UnoRuntime.queryInterface(com.sun.star.sdbc.XDriver.class,rDriver);
                if(xDriver != null)
View Full Code Here

    XConnection xConn    = xConnector.connect("socket,host=localhost,port=6001");
    if(xConn == null) System.err.println("no XConnection!");

    IBridge iBridge = UnoRuntime.getBridgeByName("java", null, "remote", null, new Object[]{"iiop", xConn, null});

    Object rInitialObject = iBridge.mapInterfaceFrom("classic_uno", XInterface.class);

    if(rInitialObject != null)
    {
      System.err.println("got the remote object");
      System.out.println("before naming service !");
      try
      {
        XNamingService rName = (XNamingService)UnoRuntime.queryInterface(XNamingService.class, rInitialObject );
        try
        {
          if(rName != null)
          {
            System.err.println("got the remote naming service !");
            Object rXsmgr = rName.getRegisteredObject("StarOffice.ServiceManager");
            XMultiServiceFactory rSmgr = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, rXsmgr);
            if(rSmgr != null)
            {
              System.out.println("got the remote service manager !");
              Object rDriver = rSmgr.createInstance("com.sun.star.sdbc.ADriver");
              if(rDriver != null)
              {
                System.out.println("got a com.sun.star.sdbc.Driver !");
                com.sun.star.sdbc.XDriver  xDriver  = (XDriver)UnoRuntime.queryInterface(com.sun.star.sdbc.XDriver.class,rDriver);
                if(xDriver != null)
View Full Code Here

     * @return the context.
     */

    public ControlWrapper current (String threadId) throws SystemException
    {
  Object arg = otsCurrent.get(threadId);
  ControlWrapper wrapper = null;

  if (arg != null)
  {
      try
View Full Code Here

  {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
             com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ContextManager::current ()");
  }

  Object arg = otsCurrent.get(ThreadUtil.getThreadId());
  ControlWrapper wrapper = null;

  if (arg != null)
  {
      try
View Full Code Here

      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
             com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ContextManager::popAction ()");
  }

  ControlWrapper action = null;
  Object arg = otsCurrent.get(threadId);

  if (arg != null)
  {
      Stack sl = (Stack) arg;
View Full Code Here

     * @return the context.
     */

    public ControlWrapper current (String threadId) throws SystemException
    {
  Object arg = otsCurrent.get(threadId);
  ControlWrapper wrapper = null;

  if (arg != null)
  {
      try
View Full Code Here

  {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
             com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ContextManager::current ()");
  }

  Object arg = otsCurrent.get(ThreadUtil.getThreadId());
  ControlWrapper wrapper = null;

  if (arg != null)
  {
      try
View Full Code Here

      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
             com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ContextManager::popAction ()");
  }

  ControlWrapper action = null;
  Object arg = otsCurrent.get(threadId);

  if (arg != null)
  {
      Stack sl = (Stack) arg;
View Full Code Here

     * and adds it to the <tt>Pipeline</tt> of this WebModule.
     *
     * @param className the fully qualified class name of the <tt>Valve</tt>
     */
    protected void addValve(String className) {
        Object valve = loadInstance(className);
        if (valve instanceof Valve) {
            super.addValve((Valve) valve);
        } else if (valve instanceof GlassFishValve) {
            super.addValve((GlassFishValve) valve);
        } else {
View Full Code Here

TOP

Related Classes of java.lang.Object

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.