Examples of newInstance()


Examples of com.sun.xml.ws.rx.policy.AssertionInstantiator.newInstance()

    }

    public PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters, AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException {
        AssertionInstantiator instantiator = instantiationMap.get(data.getName());
        if (instantiator != null) {
            return instantiator.newInstance(data, assertionParameters, nestedAlternative);
        } else {
            return defaultCreator.createAssertion(data, assertionParameters, nestedAlternative, null);
        }
    }
}
View Full Code Here

Examples of diva.canvas.FigureDecorator.newInstance()

    public FigureDecorator newInstance(Figure f) {
        FigureDecorator d = (FigureDecorator) _typedDecorators
                .get(f.getClass());

        if (d != null) {
            return d.newInstance(f);
        }

        return _defaultDecorator.newInstance(/* d */null);
    }

View Full Code Here

Examples of fitnesse.slim.fixtureInteraction.FixtureInteraction.newInstance()

        Object[] initargs = ConverterSupport.convertArgs(args,
                constructor.getParameterTypes());

        FixtureInteraction interaction = SlimService.getInteractionClass()
                .newInstance();
        return interaction.newInstance(constructor, initargs);
    }

    private Class<?> searchPathsForClass(String className) {
        Class<?> k = getClass(className);
        if (k != null) {
View Full Code Here

Examples of freemarker.ext.beans.BeansWrapper.newInstance()

            ObjectWrapper ow = env.getObjectWrapper();
            BeansWrapper bw =
                ow instanceof BeansWrapper
                ? (BeansWrapper)ow
                : BeansWrapper.getDefaultInstance();
            return bw.newInstance(cl, arguments);
        }
    }
}
View Full Code Here

Examples of gov.nasa.arc.mct.registry.ExternalComponentRegistryImpl.newInstance()

            if (info.isCreatable()) {
                PolicyContext policyContext = new PolicyContext();
                policyContext.setProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), targetComponent);
                policyContext.setProperty(PolicyContext.PropertyName.ACTION.getName(), 'w');
                String compositionKey = PolicyInfo.CategoryType.COMPOSITION_POLICY_CATEGORY.getKey();
                AbstractComponent tempComponent =  extCompRegistry.newInstance(info);
                policyContext.setProperty(PolicyContext.PropertyName.SOURCE_COMPONENTS.getName(), Collections.singleton(tempComponent));
                if (PolicyManagerImpl.getInstance().execute(compositionKey, policyContext).getStatus()) {
                    subActions.add(new NewTypeAction(info, targetComponent));
                }
            }
View Full Code Here

Examples of gov.nasa.arc.mct.services.component.ComponentRegistry.newInstance()

    // will be injected through the OSGi declarative services model
    ComponentRegistry registry = ComponentRegistryAccess.getComponentRegistry();
   
    if (registry != null) {
      // use the ComponentRegistry service to create a new instance of a component
      ExampleComponent ec = registry.newInstance(ExampleComponent.class, component);
   
      // additional information can be collected here to populate a model. This simply
      // sets a unique name
      ec.setDisplayName("newComponentFromMenu"+newCount.incrementAndGet());
     
View Full Code Here

Examples of gov.nasa.arc.mct.services.internal.component.CoreComponentRegistry.newInstance()

        // Regression test for root cause of https://github.com/nasa/mct/issues/281
        String id = "someTestUser";
       
        CoreComponentRegistry mockRegistry = Mockito.mock(CoreComponentRegistry.class);
        Mockito.when(mockPlatform.getComponentRegistry()).thenReturn(mockRegistry);
        Mockito.when(mockRegistry.newInstance(Mockito.anyString()))
            .thenAnswer(new Answer<AbstractComponent>() {
                @Override
                public AbstractComponent answer(InvocationOnMock invocation) throws Throwable {
                    return AbstractComponent.class.cast(
                            Class.forName(invocation.getArguments()[0].toString()).newInstance()
View Full Code Here

Examples of grails.core.GrailsClass.newInstance()

        Class<?> clazz = cl.parseClass("class TestService { }");
        GrailsClass grailsClass = new AbstractGrailsClass(clazz, "Service") {/*empty*/};
        assertEquals("TestService", clazz.getName());
        assertEquals("Test", grailsClass.getName());
        assertEquals("TestService", grailsClass.getFullName());
        assertNotNull(grailsClass.newInstance());
    }

    public void testAbstractGrailsClassPackage() throws Exception {
        GroovyClassLoader cl = new GroovyClassLoader();
        Class<?> clazz = cl.parseClass("package test.casey; class TestService { }");
View Full Code Here

Examples of ie.omk.smpp.Connection.newInstance()

    // open connection and bind
    Connection connection = connect(4444);
    bind(connection, Connection.TRANSMITTER, "test", "test", null);

    SubmitSM submitSM = (SubmitSM) connection.newInstance(SMPPPacket.SUBMIT_SM);
    submitSM.setDestination(new Address(0, 0, "573001111111"));
    submitSM.setSource(new Address(0, 0, "3542"));
    submitSM.setMessageText("This is a test");

    SubmitSMResp response = (SubmitSMResp) connection.sendRequest(submitSM);
View Full Code Here

Examples of jade.content.schema.ObjectSchema.newInstance()

    if(logger.isLoggable(Logger.FINE))
      logger.log(Logger.FINE,"Parse complex descriptor: "+name);
    ++indent;
    try {
      ObjectSchema s = o.getSchema(name);
      abs = s.newInstance();
      if (abs instanceof AbsAggregate) {
        fillAggregate((AbsAggregate) abs, p, o);
      }
      else if (p.nextToken().startsWith(":")) {
        fillSlotsByName((AbsConcept) abs, p, o);
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.