com.atlassian.plugin.osgi.factory
Class UnavailableModuleDescriptorRequiringRestartFallbackFactory

java.lang.Object
  extended by com.atlassian.plugin.osgi.factory.UnavailableModuleDescriptorRequiringRestartFallbackFactory
All Implemented Interfaces:
ModuleDescriptorFactory

public class UnavailableModuleDescriptorRequiringRestartFallbackFactory
extends java.lang.Object
implements ModuleDescriptorFactory

Return placeholder UnrecognisedModuleDescriptor instances marked with @RequiresRestart for any descriptors in the underlying ModuleDescriptorFactory that have that annotation. This is for module descriptors that won't be used yet but where we need to report the RequresRestart status back.


Field Summary
static java.lang.String DESCRIPTOR_TEXT
           
 
Constructor Summary
UnavailableModuleDescriptorRequiringRestartFallbackFactory(ModuleDescriptorFactory underlying)
           
 
Method Summary
 UnrecognisedModuleDescriptorRequiringRestart getModuleDescriptor(java.lang.String type)
           
 java.lang.Class<? extends ModuleDescriptor<?>> getModuleDescriptorClass(java.lang.String type)
           
 boolean hasModuleDescriptor(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR_TEXT

public static final java.lang.String DESCRIPTOR_TEXT
See Also:
Constant Field Values
Constructor Detail

UnavailableModuleDescriptorRequiringRestartFallbackFactory

public UnavailableModuleDescriptorRequiringRestartFallbackFactory(ModuleDescriptorFactory underlying)
Method Detail

getModuleDescriptor

public UnrecognisedModuleDescriptorRequiringRestart getModuleDescriptor(java.lang.String type)
                                                                 throws PluginParseException,
                                                                        java.lang.IllegalAccessException,
                                                                        java.lang.InstantiationException,
                                                                        java.lang.ClassNotFoundException
Specified by:
getModuleDescriptor in interface ModuleDescriptorFactory
Throws:
PluginParseException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException

getModuleDescriptorClass

public java.lang.Class<? extends ModuleDescriptor<?>> getModuleDescriptorClass(java.lang.String type)
Specified by:
getModuleDescriptorClass in interface ModuleDescriptorFactory

hasModuleDescriptor

public boolean hasModuleDescriptor(java.lang.String type)
Specified by:
hasModuleDescriptor in interface ModuleDescriptorFactory


Copyright © 2012 Atlassian. All Rights Reserved.