Tabnine Logo
IJIComObject.isLocalReference
Code IndexAdd Tabnine to your IDE (free)

How to use
isLocalReference
method
in
org.jinterop.dcom.core.IJIComObject

Best Java code snippets using org.jinterop.dcom.core.IJIComObject.isLocalReference (Showing top 9 results out of 315)

origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public boolean isLocalReference ()
{
  return this.comObject.isLocalReference ();
}
origin: org.jinterop/j-interop

public boolean isLocalReference() {
  return comObject.isLocalReference();
}
 
origin: org.kohsuke.jinterop/j-interop

public boolean isLocalReference() {
  return comObject.isLocalReference();
}
 
origin: org.jinterop/j-interop

/**<i>Narrows</i> the <code>comObject</code> into its right type based on it's <code>IID</code>. For example, passing a 
 * <code>comObject</code> which is a COM <code>IDispatch</code> reference will return a reference which can be safely casted 
 * to <code>IJIDispatch</code> interface. 
 * 
 * @param comObject 
 * @return
 * @throws JIException
 * @throws IllegalArgumentException if <code>comObject</code> is <code>null</code> or a local reference.
 */
public static IJIComObject narrowObject(final IJIComObject comObject) throws JIException
{
  if (comObject == null || comObject.isLocalReference())
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COMFACTORY_ILLEGAL_ARG));
  }
  
  //Will later on add another way to dynamically moving to factories.
  IJIComObject retval = Internal_JIAutomationFactory.narrowObject(comObject);
  
  return retval;
}
 
origin: org.kohsuke.jinterop/j-interop

/**<i>Narrows</i> the <code>comObject</code> into its right type based on it's <code>IID</code>. For example, passing a
 * <code>comObject</code> which is a COM <code>IDispatch</code> reference will return a reference which can be safely casted
 * to <code>IJIDispatch</code> interface.
 *
 * @param comObject
 * @return
 * @throws JIException
 * @throws IllegalArgumentException if <code>comObject</code> is <code>null</code> or a local reference.
 */
public static IJIComObject narrowObject(final IJIComObject comObject) throws JIException
{
  if (comObject == null || comObject.isLocalReference())
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COMFACTORY_ILLEGAL_ARG));
  }
  //Will later on add another way to dynamically moving to factories.
  IJIComObject retval = Internal_JIAutomationFactory.narrowObject(comObject);
  return retval;
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

/**
 * <i>Narrows</i> the <code>comObject</code> into its right type based on
 * it's <code>IID</code>. For example, passing a <code>comObject</code>
 * which is a COM <code>IDispatch</code> reference will return a reference
 * which can be safely casted
 * to <code>IJIDispatch</code> interface.
 * 
 * @param comObject
 * @return
 * @throws JIException
 * @throws IllegalArgumentException
 *             if <code>comObject</code> is <code>null</code> or a local
 *             reference.
 */
public static IJIComObject narrowObject ( final IJIComObject comObject ) throws JIException
{
  if ( comObject == null || comObject.isLocalReference () )
  {
    throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_COMFACTORY_ILLEGAL_ARG ) );
  }
  //Will later on add another way to dynamically moving to factories.
  final IJIComObject retval = Internal_JIAutomationFactory.narrowObject ( comObject );
  return retval;
}
origin: org.kohsuke.jinterop/j-interop

/** Typically used in the Man-In-The-Middle scenario, where one j-Interop system interacts with another over the wire.
 * Or the IJIComObject is deserialized from a Database and is right now drifting.
 *
 * @exclude
 * @param session
 * @param comObject
 * @return
 * @throws JIException
 */
public static IJIComObject instantiateComObject(JISession session,IJIComObject comObject) throws JIException
{
  if (comObject.getAssociatedSession() != null)
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_SESSION_ALREADY_ATTACHED));
  }
  if (comObject.isLocalReference())
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COMOBJ_LOCAL_REF));
  }
  return instantiateComObject(session, comObject.internal_getInterfacePointer());
}
origin: org.jinterop/j-interop

/** Typically used in the Man-In-The-Middle scenario, where one j-Interop system interacts with another over the wire. 
 * Or the IJIComObject is deserialized from a Database and is right now drifting.
 * 
 * @exclude
 * @param session
 * @param comObject
 * @return
 * @throws JIException
 */
public static IJIComObject instantiateComObject(JISession session,IJIComObject comObject) throws JIException
{
  if (comObject.getAssociatedSession() != null)
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_SESSION_ALREADY_ATTACHED));
  }
  
  if (comObject.isLocalReference())
  {
    throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COMOBJ_LOCAL_REF));
  }
  
  return instantiateComObject(session, comObject.internal_getInterfacePointer());
}
 
origin: org.openscada.jinterop/org.openscada.jinterop.core

/**
 * Typically used in the Man-In-The-Middle scenario, where one j-Interop
 * system interacts with another over the wire.
 * Or the IJIComObject is deserialized from a Database and is right now
 * drifting.
 * 
 * @exclude
 * @param session
 * @param comObject
 * @return
 * @throws JIException
 */
public static IJIComObject instantiateComObject ( final JISession session, final IJIComObject comObject ) throws JIException
{
  if ( comObject.getAssociatedSession () != null )
  {
    throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_SESSION_ALREADY_ATTACHED ) );
  }
  if ( comObject.isLocalReference () )
  {
    throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_COMOBJ_LOCAL_REF ) );
  }
  return instantiateComObject ( session, comObject.internal_getInterfacePointer () );
}
org.jinterop.dcom.coreIJIComObjectisLocalReference

Javadoc

Returns true if this COM object represents a local Java reference obtained by org.jinterop.dcom.impls.JIObjectFactory#buildObject(JISession,JILocalCoClass).

Popular methods of IJIComObject

  • queryInterface
    Retrieve interface references based on iid. Make sure to narrow before casting to the expected type
  • call
    Refer #call(JICallBuilder) for details on this method.
  • getAssociatedSession
    Returns session associated with this object.
  • addRef
    Increases the reference count on the COM server by 5 (currently hard coded). The developer should r
  • getInstanceLevelSocketTimeout
    Returns the socket timeout set at the instance level. This timeout value is used during all socket l
  • getInterfaceIdentifier
    Returns the COM IID of this object
  • getIpid
    Unique 128 bit uuid representing the interface on the COM server. This value can and should be used
  • getUnreferencedHandler
    Returns the IJIUnreferenced handler associated with this object.
  • internal_getConnectionInfo
    Framework Internal Returns the ConnectionPoint (IJIComObject) and it's Cookie.
  • internal_getInterfacePointer
    Framework Internal Returns self Interface pointer.
  • internal_removeConnectionInfo
    Framework Internal Returns and Removes the connection info from the internal map.
  • internal_setConnectionInfo
    Adds a connection point information and it's cookie to the connectionPointMap internally. To be call
  • internal_removeConnectionInfo,
  • internal_setConnectionInfo,
  • internal_setDeffered,
  • isDispatchSupported,
  • registerUnreferencedHandler,
  • release,
  • setInstanceLevelSocketTimeout,
  • unregisterUnreferencedHandler

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • String (java.lang)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now