Examples of ObjectRegistry


Examples of org.cishell.reference.remoting.ObjectRegistry

    private ServiceTracker schedulerReg;
    private IDGenerator idGen;
   
    public AlgorithmRegistryServer(BundleContext bContext, CIShellContext ciContext) {
        idGen = new IDGenerator("AlgorithmRegistry-");
        registry = new ObjectRegistry();
       
        dmReg = new ServiceTracker(bContext, DataModelRegistry.class.getName(), null);
        eventReg = new ServiceTracker(bContext, EventAdmin.class.getName(), null);
        schedulerReg = new ServiceTracker(bContext, SchedulerService.class.getName(), null);
       
View Full Code Here

Examples of org.cishell.reference.remoting.ObjectRegistry

    private ServiceTracker ocdReg;
   
    public MetaTypeProviderRegistryServer(BundleContext bContext, CIShellContext ciContext) {
        this.bContext = bContext;
       
        registry = new ObjectRegistry();
        ocdReg = new ServiceTracker(this.bContext,
                        ObjectClassDefinitionRegistry.class.getName(), null);
       
        ocdReg.open();
    }
View Full Code Here

Examples of org.cishell.reference.remoting.ObjectRegistry

        ObjectClassDefinitionRegistry {       
    private ObjectRegistry registry;
    private ServiceTracker attrReg;

    public ObjectClassDefinitionRegistryServer(BundleContext bContext, CIShellContext ciContext) {
        registry = new ObjectRegistry();
        attrReg = new ServiceTracker(bContext, AttributeDefinitionRegistry.class.getName(), null);
       
        attrReg.open();
    }
View Full Code Here

Examples of org.cishell.reference.remoting.ObjectRegistry

public class AttributeDefinitionRegistryServer implements
        AttributeDefinitionRegistry {
    private ObjectRegistry registry;
   
    public AttributeDefinitionRegistryServer(BundleContext bContext, CIShellContext ciContext) {
        registry = new ObjectRegistry();
    }
View Full Code Here

Examples of org.cishell.reference.remoting.ObjectRegistry

    private ObjectRegistry registry;
    private CIShellContext ciContext;
   
    public DataModelRegistryServer(BundleContext bContext, CIShellContext ciContext) {
        this.ciContext = ciContext;
        registry = new ObjectRegistry();
    }
View Full Code Here

Examples of org.cishell.reference.remoting.ObjectRegistry

       
        try {
            host = InetAddress.getLocalHost().getHostName();
        } catch (UnknownHostException e) {}
       
        listeners = new ObjectRegistry(host+":8180-");
        eventAdmin = (EventAdmin) bContext.getService(
                bContext.getServiceReference(EventAdmin.class.getName()));
    }
View Full Code Here

Examples of org.crank.core.ObjectRegistry

    employee = new EmployeeMock();
    employee.setAddress(new AddressMock());
    employee.setDepartment(new DepartmentMock());
    employee.getDepartment().setAddress(new AddressMock());
    employee.getDepartment().getAddress().setLine1("foo bar");
    ObjectRegistry objectRegistry = CrankContext.getObjectRegistry();
    SpringApplicationContextObjectRegistry sacObjectRegistry = (SpringApplicationContextObjectRegistry) objectRegistry;
    sacObjectRegistry.setApplicationContext(this.applicationContext);
  }
View Full Code Here

Examples of org.crank.core.ObjectRegistry

     *
     * @return field validator
     */
    private FieldValidator lookupValidatorInRegistry(
            String validationMetaDataName) {
        ObjectRegistry applicationContext = CrankContext.getObjectRegistry();

        return (FieldValidator) applicationContext
                .getObject(CrankConstants.FRAMEWORK_PREFIX
                        + CrankConstants.FRAMEWORK_DELIM + "validator"
                        + CrankConstants.FRAMEWORK_DELIM
                        + validationMetaDataName, FieldValidator.class);
    }
View Full Code Here

Examples of org.crank.core.ObjectRegistry

     *            The name of the validator that we are looking up.
     *
     * @return
     */
    private FieldValidator lookupValidatorInRegistry(String validator) {
        ObjectRegistry applicationContext = CrankContext.getObjectRegistry();

        FieldValidator fvalidator = (FieldValidator) applicationContext.getObject(
                CrankConstants.FRAMEWORK_PREFIX + CrankConstants.FRAMEWORK_DELIM
                        + "validator" + CrankConstants.FRAMEWORK_DELIM + validator,
                FieldValidator.class);
        return fvalidator;
    }
View Full Code Here

Examples of org.crank.core.ObjectRegistry

    try {
      Serializable entityId = CrudUtils.getIdObject(value, this.idType);
            logger.debug(String.format("entityId %s", entityId));
            if (dao == null) {
        ObjectRegistry objectRegistry = CrankContext
            .getObjectRegistry();
        Map<String, GenericDao> repos = (Map<String, GenericDao>) objectRegistry
            .getObject("repos");

        if (managedObject != null) {
                    logger.debug("Looking up DAO by managedObject");
                    dao = repos.get(managedObject.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.