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 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 String DESCRIPTOR_TEXT
           
 
Constructor Summary
UnavailableModuleDescriptorRequiringRestartFallbackFactory(ModuleDescriptorFactory underlying)
           
 
Method Summary
 UnrecognisedModuleDescriptorRequiringRestart getModuleDescriptor(String type)
           
 Class<? extends ModuleDescriptor<?>> getModuleDescriptorClass(String type)
           
 boolean hasModuleDescriptor(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 String DESCRIPTOR_TEXT
See Also:
Constant Field Values
Constructor Detail

UnavailableModuleDescriptorRequiringRestartFallbackFactory

public UnavailableModuleDescriptorRequiringRestartFallbackFactory(ModuleDescriptorFactory underlying)
Method Detail

getModuleDescriptor

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

getModuleDescriptorClass

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

hasModuleDescriptor

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


Copyright © 2015 Atlassian. All rights reserved.