• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java IRepositoryService类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.repository.IRepositoryService的典型用法代码示例。如果您正苦于以下问题:Java IRepositoryService类的具体用法?Java IRepositoryService怎么用?Java IRepositoryService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

IRepositoryService类属于org.pentaho.di.repository包,在下文中一共展示了IRepositoryService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: invoke

点赞 3

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
@SuppressWarnings( "unchecked" )
@Override
public Object invoke( Object proxy, Method method, Object[] args ) throws Throwable {
  try {
    String methodName = method.getName();
    if ( GET_SERVICE_METHOD_NAME.equals( methodName ) ) {
      return wrapRepositoryServiceWithTimeoutHandler(
          (Class<? extends IRepositoryService>) args[SERVICE_CLASS_ARGUMENT] );
    }
    if ( GET_META_STORE_METHOD_NAME.equals( methodName ) ) {
      return metaStoreInstance;
    }
    Object result = method.invoke( repository, args );
    if ( CONNECT_METHOD_NAME.equals( methodName ) ) {
      IMetaStore metaStore = repository.getMetaStore();
      metaStoreInstance = wrapMetastoreWithTimeoutHandler( metaStore, sessionTimeoutHandler );
    }
    return result;
  } catch ( InvocationTargetException ex ) {
    if ( connectedToRepository() ) {
      return sessionTimeoutHandler.handle( repository, ex.getCause(), method, args );
    }
    throw ex.getCause();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:26,
代码来源:RepositorySessionTimeoutHandler.java

示例2: init

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
/**
  * Initialize the repository with the repository metadata and user information.
  */
 public void init(RepositoryMeta repositoryMeta) {
	this.repositoryMeta = (KettleDatabaseRepositoryMeta)repositoryMeta;
	this.serviceList = new ArrayList<Class<? extends IRepositoryService>>();
   this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>();
	this.log = new LogChannel(this);
	init();
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:11,
代码来源:KettleDatabaseRepository.java

示例3: init

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public void init(RepositoryMeta repositoryMeta) {
  this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>(); 
  this.serviceList = new ArrayList<Class<? extends IRepositoryService>>();
	this.repositoryMeta = (KettleFileRepositoryMeta) repositoryMeta;
	this.securityProvider = new KettleFileRepositorySecurityProvider(repositoryMeta);
   this.serviceMap.put(RepositorySecurityProvider.class, securityProvider);
   this.serviceList.add(RepositorySecurityProvider.class);
	this.log = new LogChannel(this);
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:10,
代码来源:KettleFileRepository.java

示例4: createUISupport

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public IRepositoryExplorerUISupport createUISupport(Class<? extends IRepositoryService> service) throws UIObjectCreationException {
  Class<? extends IRepositoryExplorerUISupport> supportClass = uiSupportMap.get(service);
  if(supportClass != null) {
    return contruct(supportClass);  
  } else {
    return null;
  }
  
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:10,
代码来源:UISupportRegistery.java

示例5: init

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
/**
 * Initialize the repository with the repository metadata and user
 * information.
 */
public void init(RepositoryMeta repositoryMeta) {
  this.repositoryMeta = (KettleDatabaseRepositoryMeta) repositoryMeta;
  this.serviceList = new ArrayList<Class<? extends IRepositoryService>>();
  this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>();
  this.log = new LogChannel(this);
  init();
}
 

开发者ID:jjeb,
项目名称:kettle-trunk,
代码行数:12,
代码来源:KettleDatabaseRepository.java

示例6: init

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
@Override
public void init( RepositoryMeta repositoryMeta ) {
  this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>();
  this.serviceList = new ArrayList<Class<? extends IRepositoryService>>();
  this.repositoryMeta = (KettleFileRepositoryMeta) repositoryMeta;
  this.securityProvider = new KettleFileRepositorySecurityProvider( repositoryMeta );
  this.serviceMap.put( RepositorySecurityProvider.class, securityProvider );
  this.serviceList.add( RepositorySecurityProvider.class );
  this.metaStore = null;
  this.log = new LogChannel( this );
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:12,
代码来源:KettleFileRepository.java

示例7: createUISupport

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public IRepositoryExplorerUISupport createUISupport( Class<? extends IRepositoryService> service ) throws UIObjectCreationException {
  Class<? extends IRepositoryExplorerUISupport> supportClass = uiSupportMap.get( service );
  if ( supportClass != null ) {
    return contruct( supportClass );
  } else {
    return null;
  }

}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:10,
代码来源:UISupportRegistery.java

示例8: wrapRepositoryServiceWithTimeoutHandler

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
IRepositoryService wrapRepositoryServiceWithTimeoutHandler( Class<? extends IRepositoryService> clazz )
  throws KettleException {
  IRepositoryService service = repository.getService( clazz );
  RepositoryServiceSessionTimeoutHandler timeoutHandler =
      new RepositoryServiceSessionTimeoutHandler( service, sessionTimeoutHandler );
  return wrapObjectWithTimeoutHandler( service, timeoutHandler );
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:8,
代码来源:RepositorySessionTimeoutHandler.java

示例9: getService

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public IRepositoryService getService(Class<? extends IRepositoryService> clazz) throws KettleException {
  return serviceMap.get(clazz);
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:KettleDatabaseRepository.java

示例10: getServiceInterfaces

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public List<Class<? extends IRepositoryService>> getServiceInterfaces() throws KettleException {
  return serviceList;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:KettleDatabaseRepository.java

示例11: hasService

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public boolean hasService(Class<? extends IRepositoryService> clazz) throws KettleException {
  return serviceMap.containsKey(clazz);
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:KettleDatabaseRepository.java

示例12: UISupportRegistery

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
private UISupportRegistery() {
  uiSupportMap = new HashMap<Class<? extends IRepositoryService>, Class<? extends IRepositoryExplorerUISupport>>();
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:UISupportRegistery.java

示例13: registerUISupport

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public void registerUISupport(Class<? extends IRepositoryService> service, Class<? extends IRepositoryExplorerUISupport> supportClass) {
  uiSupportMap.put(service, supportClass);
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:UISupportRegistery.java

示例14: getRepositoryService

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public IRepositoryService getRepositoryService() {
  return repositoryService;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:UIRepositoryObject.java

示例15: setRepositoryService

点赞 2

import org.pentaho.di.repository.IRepositoryService; //导入依赖的package包/类
public void setRepositoryService(IRepositoryService repositoryService) {
  this.repositoryService = repositoryService;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:UIRepositoryObject.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)