org.eclipse.equinox.util_1.0.400.v20120917-192807

undleContext context)
    throws InvalidSyntaxException
  {
    if (context == null) {
      throw new NullPointerException("Context is null");
    }
    if ((clazz == null) && (filter == null)) {
      throw new NullPointerException("Either filter or clazz parameter should not be null");
    }
    try
    {
      return (ServiceReference[])PrivilegedRunner.doPrivileged(controlContext, this, 60, context, clazz, filter, null);
    }
    catch (InvalidSyntaxException e)
    {
      throw e;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public ServiceRegistration registerService(String clazz, Object service, Dictionary properties, BundleContext context)
  {
    if (context == null) {
      throw new NullPointerException("Context is null");
    }
    if (service == null) {
      throw new NullPointerException("Service is null");
    }
    if (clazz == null) {
      throw new NullPointerException("Class name is null");
    }
    try
    {
      return (ServiceRegistration)PrivilegedRunner.doPrivileged(controlContext, this, 62, context, clazz, service, properties);
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public ServiceRegistration registerService(String[] classes, Object service, Dictionary properties, BundleContext context)
  {
    if (context == null) {
      throw new NullPointerException("Context is null");
    }
    if (service == null) {
      throw new NullPointerException("Service is null");
    }
    if (classes == null) {
      throw new NullPointerException("Class names are null");
    }
    try
    {
      return (ServiceRegistration)PrivilegedRunner.doPrivileged(controlContext, this, 63, context, classes, service, properties);
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public String getLocation(Bundle bundle)
  {
    try
    {
      return (String)PrivilegedRunner.doPrivileged(controlContext, this, 70, bundle, null, null, null);
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public Dictionary getHeaders(Bundle bundle)
  {
    try
    {
      return (Dictionary)PrivilegedRunner.doPrivileged(controlContext, this, 71, bundle, null, null, null);
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public void start(Bundle bundle)
    throws BundleException
  {
    try
    {
      PrivilegedRunner.doPrivileged(controlContext, this, 72, bundle, null, null, null);
    }
    catch (BundleException t)
    {
      throw t;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public void stop(Bundle bundle)
    throws BundleException
  {
    try
    {
      PrivilegedRunner.doPrivileged(controlContext, this, 73, bundle, null, null, null);
    }
    catch (BundleException t)
    {
      throw t;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public void uninstall(Bundle bundle)
    throws BundleException
  {
    try
    {
      PrivilegedRunner.doPrivileged(controlContext, this, 74, bundle, null, null, null);
    }
    catch (BundleException t)
    {
      throw t;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public void update(Bundle bundle)
    throws BundleException
  {
    try
    {
      PrivilegedRunner.doPrivileged(controlContext, this, 75, bundle, null, null, null);
    }
    catch (BundleException t)
    {
      throw t;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public void update(Bundle bundle, InputStream is)
    throws BundleException
  {
    try
    {
      PrivilegedRunner.doPrivileged(controlContext, this, 76, bundle, is, null, null);
    }
    catch (BundleException t)
    {
      throw t;
    }
    catch (Exception t)
    {
      throw new RuntimeException(t.getMessage());
    }
  }
  
  public Object doPrivileged(PrivilegedRunner.PrivilegedDispatcher dispatcher, int type, Object arg1, Object arg2, Object arg3, Object arg4)
    throws Exception
  {
    return PrivilegedRunner.doPrivileged(controlContext, dispatcher, type, arg1, arg2, arg3, arg4);
  }
  
  public Object doPrivileged(PrivilegedRunner.PrivilegedDispatcher dispatcher, int type, Object arg1, Object arg2, Object arg3)
    throws Exception
  {
    return PrivilegedRunner.doPrivileged(controlContext, dispatcher, type, arg1, arg2, arg3, null);
  }
  
  public Object doPrivileged(PrivilegedRunner.PrivilegedDispatcher dispatcher, int type, Object arg1, Object arg2)
    throws Exception
  {
    return PrivilegedRunner.doPrivileged(controlContext, dispatcher, type, arg1, arg2, null, null);
  }
  
  public Object doPrivileged(PrivilegedRunner.PrivilegedDispatcher dispatcher, int type, Object arg1)
    throws Exception
  {
    return PrivilegedRunner.doPrivileged(controlContext, dispatcher, type, arg1, null, null, null);
  }
  
  public Object dispatchPrivileged(int type, Object arg1, Object arg2, Object arg3, Object arg4)
    throws Exception
  {
    switch (type)
    {
    case 41: 
      return UtilActivator.bc.getProperty((String)arg1);
    case 42: 
      return new Thread((Runnable)arg1, (String)arg2);
    case 43: 
      return Class.forName((String)arg1);
    case 44: 
      return System.getProperties().put(arg1, arg2);
    case 50: 
      return new FileInputStream((File)arg1);
    case 51: 
      return new FileOutputStream(((File)arg1).getAbsolutePath(), ((Boolean)arg2).booleanValue());
    case 52: 
      return new Long(((File)arg1).length());
    case 53: 
      return ((File)arg1).exists() ? Boolean.TRUE : Boolean.FALSE;
    case 54: 
      return ((File)arg1).isDirectory() ? Boolean.TRUE : Boolean.FALSE;
    case 55: 
      return new Long(((File)arg1).lastModified());
    case 56: 
      return ((File)arg1).list();
    case 57: 
      return ((File)arg1).delete() ? Boolean.TRUE : Boolean.FALSE;
    case 58: 
      return ((File)arg1).renameTo((File)arg2) ? Boolean.TRUE : Boolean.FALSE;
    case 59: 
      return new RandomAccessFile((File)arg1, (String)arg2);
    case 60: 
      return ((BundleContext)arg1).getServiceReferences((String)arg2, (String)arg3);
    case 61: 
      return ((BundleContext)arg1).getService((ServiceReference)arg2);
    case 62: 
      return ((BundleContext)arg1).registerService((String)arg2, arg3, (Dictionary)arg4);
    case 63: 
      return ((BundleContext)arg1).registerService((String[])arg2, arg3, (Dictionary)arg4);
    case 70: 
      return ((Bundle)arg1).getLocation();
    case 71: 
      return ((Bundle)arg1).getHeaders();
    case 72: 
      ((Bundle)arg1).start();
      break;
    case 73: 
      ((Bundle)arg1).stop();
      break;
    case 74: 
      ((Bundle)arg1).uninstall();
      break;
    case 75: 
      ((Bundle)arg1).update();
      break;
    case 76: 
      ((Bundle)arg1).update((InputStream)arg2);
    }
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.security.SecurityUtil
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.util.threadpool;

public abstract interface ThreadContext
{
  public abstract Runnable getRunnable();
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.threadpool.ThreadContext
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.util.threadpool;

public abstract interface ThreadPoolFactory
{
  public abstract ThreadPoolManager getThreadPool(int paramInt, boolean paramBoolean);
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.threadpool.ThreadPoolFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.util.threadpool;

public abstract interface ThreadPoolManager
{
  public abstract void execute(Runnable paramRunnable, String paramString)
    throws IllegalArgumentException;
  
  public abstract void execute(Runnable paramRunnable, int paramInt, String paramString)
    throws IllegalArgumentException;
  
  public abstract void reset();
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.threadpool.ThreadPoolManager
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.util.timer;

public abstract interface Timer
{
  public static final int ONE_SHOT_TIMER = 0;
  public static final int PERIODICAL_TIMER = 1;
  public static final int ONE_SHOT_TIMER_NO_DELAY = 2;
  public static final int PERIODICAL_TIMER_NO_DELAY = 3;
  
  /**
   * @deprecated
   */
  public abstract void notifyAfterMillis(TimerListener paramTimerListener, long paramLong, int paramInt)
    throws IllegalArgumentException;
  
  /**
   * @deprecated
   */
  public abstract void notifyAfterMillis(TimerListener paramTimerListener, int paramInt1, long paramLong, int paramInt2)
    throws IllegalArgumentException;
  
  /**
   * @deprecated
   */
  public abstract void notifyAfter(TimerListener paramTimerListener, int paramInt1, int paramInt2)
    throws IllegalArgumentException;
  
  /**
   * @deprecated
   */
  public abstract void notifyAfter(TimerListener paramTimerListener, int paramInt1, int paramInt2, int paramInt3)
    throws IllegalArgumentException;
  
  public abstract void addNotifyListener(TimerListener paramTimerListener, int paramInt1, int paramInt2, long paramLong, int paramInt3);
  
  public abstract void removeListener(TimerListener paramTimerListener, int paramInt);
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.timer.Timer
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.util.timer;

public abstract interface TimerListener
{
  public abstract void timer(int paramInt);
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.util.timer.TimerListener
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
1 2 3 4

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd