33 lines
1022 B
Java
33 lines
1022 B
Java
// ============================================================================
|
|
//
|
|
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
|
|
//
|
|
// This source code is available under agreement available at
|
|
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
|
//
|
|
// You should have received a copy of the agreement
|
|
// along with this program; if not, write to Talend SA
|
|
// 9 rue Pages 92150 Suresnes, France
|
|
//
|
|
// ============================================================================
|
|
package routines.system;
|
|
|
|
import java.util.Date;
|
|
|
|
import org.talend.components.api.container.RuntimeContainer;
|
|
import org.talend.components.api.container.ComponentDynamicHolder;
|
|
|
|
public class ComponentRuntimeContainerBase implements RuntimeContainer {
|
|
|
|
@Override
|
|
public ComponentDynamicHolder createDynamicHolder() {
|
|
throw new RuntimeException("This must be subclassed");
|
|
}
|
|
|
|
@Override
|
|
public String formatDate(Date date, String pattern) {
|
|
return FormatterUtils.format(date, pattern);
|
|
}
|
|
|
|
}
|