com.atlassian.plugin.osgi.hostcomponents
Enum ContextClassLoaderStrategy

java.lang.Object
  extended by java.lang.Enum<ContextClassLoaderStrategy>
      extended by com.atlassian.plugin.osgi.hostcomponents.ContextClassLoaderStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContextClassLoaderStrategy>

public enum ContextClassLoaderStrategy
extends java.lang.Enum<ContextClassLoaderStrategy>

The strategy for handling the context class loader for host component method invocations


Enum Constant Summary
USE_HOST
          This strategy ensures the context class loader will be set to the host application's class loader.
USE_PLUGIN
          This strategy ensures the context class loader remains the bundle's class loader.
 
Method Summary
static ContextClassLoaderStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContextClassLoaderStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USE_PLUGIN

public static final ContextClassLoaderStrategy USE_PLUGIN
This strategy ensures the context class loader remains the bundle's class loader.


USE_HOST

public static final ContextClassLoaderStrategy USE_HOST
This strategy ensures the context class loader will be set to the host application's class loader.

Method Detail

values

public static final ContextClassLoaderStrategy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ContextClassLoaderStrategy c : ContextClassLoaderStrategy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ContextClassLoaderStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.