private IRepositoryExplorerUISupport contruct( Class<? extends IRepositoryExplorerUISupport> supportClass ) throws UIObjectCreationException { try { return supportClass.newInstance(); } catch ( Throwable th ) { throw new UIObjectCreationException( th ); } } }
public IUIUser constructUIRepositoryUser( IUser user ) throws UIObjectCreationException { try { Constructor<?> constructor = repositoryUserClass.getConstructor( IUser.class ); if ( constructor != null ) { return (IUIUser) constructor.newInstance( user ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + repositoryUserClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + repositoryUserClass ); } }
public UIJob constructUIJob( RepositoryElementMetaInterface rc, UIRepositoryDirectory parent, Repository rep ) throws UIObjectCreationException { try { Constructor<?> constructor = jobClass.getConstructor( RepositoryElementMetaInterface.class, UIRepositoryDirectory.class, Repository.class ); if ( constructor != null ) { return (UIJob) constructor.newInstance( rc, parent, rep ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + jobClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + jobClass ); } }
public UIDatabaseConnection constructUIDatabaseConnection( DatabaseMeta dbmeta, Repository rep ) throws UIObjectCreationException { try { Constructor<?> constructor = dbConnClass.getConstructor( DatabaseMeta.class, Repository.class ); if ( constructor != null ) { return (UIDatabaseConnection) constructor.newInstance( dbmeta, rep ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + dbConnClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + dbConnClass ); } } }
public UITransformation constructUITransformation( RepositoryElementMetaInterface rc, UIRepositoryDirectory parent, Repository rep ) throws UIObjectCreationException { try { Constructor<?> constructor = transClass.getConstructor( RepositoryElementMetaInterface.class, UIRepositoryDirectory.class, Repository.class ); if ( constructor != null ) { return (UITransformation) constructor.newInstance( rc, parent, rep ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + transClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + transClass ); } }
public UIRepositoryDirectory constructUIRepositoryDirectory( RepositoryDirectoryInterface rd, UIRepositoryDirectory uiParent, Repository rep ) throws UIObjectCreationException { try { Constructor<?> constructor = dirClass.getConstructor( RepositoryDirectoryInterface.class, UIRepositoryDirectory.class, Repository.class ); if ( constructor != null ) { return (UIRepositoryDirectory) constructor.newInstance( rd, uiParent, rep ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + dirClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + dirClass ); } }
public IUIRole constructUIRepositoryRole( IRole role ) throws UIObjectCreationException { try { if ( repositoryRoleClass == null ) { repositoryRoleClass = DEFAULT_UIREPOSITORYROLE_CLASS; } Constructor<?> constructor = repositoryRoleClass.getConstructor( IRole.class ); if ( constructor != null ) { return (IUIRole) constructor.newInstance( role ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + repositoryRoleClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + repositoryRoleClass ); } } }
public UINamedCluster constructUINamedCluster( NamedCluster namedCluster, Repository rep ) throws UIObjectCreationException { try { Constructor<?> constructor = namedClusterClass.getConstructor( NamedCluster.class, Repository.class ); if ( constructor != null ) { return (UINamedCluster) constructor.newInstance( namedCluster, rep ); } else { throw new UIObjectCreationException( "Unable to get the constructor for " + namedClusterClass ); } } catch ( Exception e ) { throw new UIObjectCreationException( "Unable to instantiate object for " + namedClusterClass ); } } }