1 31 package org.objectweb.proactive.core.component.representative; 32 33 import org.apache.log4j.Logger; 34 35 import org.objectweb.fractal.api.Component; 36 37 import org.objectweb.proactive.core.component.ComponentParameters; 38 import org.objectweb.proactive.core.mop.Proxy; 39 40 public class ProActiveComponentRepresentativeFactory { 41 protected static Logger logger = Logger.getLogger(ProActiveComponentRepresentativeFactory.class.getName()); 42 private static ProActiveComponentRepresentativeFactory INSTANCE = null; 43 44 private ProActiveComponentRepresentativeFactory() { 45 } 46 47 public static ProActiveComponentRepresentativeFactory instance() { 48 if (INSTANCE == null) { 49 return (INSTANCE = new ProActiveComponentRepresentativeFactory()); 50 } else { 51 return INSTANCE; 52 } 53 } 54 55 public Component createComponentRepresentative( 56 ComponentParameters componentParameters, 57 Proxy proxy) { 58 return (Component) new ProActiveComponentRepresentativeImpl(componentParameters, proxy); 59 } 60 } | Popular Tags |