You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.3 KiB

//
// MOBFPluginManager.h
// MOBFoundation
//
// Created by fenghj on 15/6/2.
// Copyright (c) 2015年 MOB. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IMOBFPlugin.h"
/**
*
*
* @return
*/
typedef id<IMOBFPlugin>(^MOBFPluginConstructHandler) ();
/**
*
*/
@interface MOBFPluginManager : NSObject
/**
*
*
* @return
*/
+ (instancetype) defaultManager;
/**
*
*
* @param pluginConstructHandler
* @param key
*
* @return YES NO
*/
- (BOOL)registerPlugin:(MOBFPluginConstructHandler)pluginConstructHandler forKey:(NSString *)key;
/**
*
*
* @param key
*
* @return YES NO
*/
- (BOOL)isRegisterPluginForKey:(NSString *)key;
/**
*
*
* @param key
*
* @return nil
*/
- (id<IMOBFPlugin>)pluginForKey:(NSString *)key;
/**
*
*
* @param key
*/
- (void)unloadPluginForKey:(NSString *)key;
@end