Examples of create()


Examples of org.castor.persist.TransactionContext.create()

     * {@inheritDoc}
     */
    public void create(final Object object) throws PersistenceException {
        TransactionContext tx = getTransaction();
        ClassMolder molder = _scope.getClassMolder(object.getClass());
        tx.create(molder, object, null);
    }
   
    /**
     * {@inheritDoc}
     */
 

Examples of org.chromattic.api.ChromatticSession.create()

      //
      SessionContext context = test1LF.openContext();
      try
      {
         ChromatticSession session = test1LF.getChromattic().openSession();
         FooEntity foo = session.create(FooEntity.class);
         assertEquals("portal-test", foo.getWorkspace());
         jcrSession = session.getJCRSession();
         assertTrue(jcrSession.isLive());
         Workspace workspace = jcrSession.getWorkspace();
         assertEquals("portal-test", workspace.getName());

Examples of org.codehaus.activemq.itest.ejb.JMSToolHome.create()

   
    protected void setUp() throws Exception {
        InitialContext ctx = createInitialContext();
        JMSToolHome home = (JMSToolHome) ctx.lookup(JMSBEAN_JNDI);
        jmsTool = home.create();
    }
   
    protected void tearDown() throws Exception {
        if( jmsTool != null ) {
            try {

Examples of org.codehaus.activemq.itest.ejb.MessengerHome.create()

    private static final int REPS = 5;

    public void xtestSendReceive() throws CreateException, RemoteException, NamingException, JMSException {
        InitialContext ctx = createInitialContext();
        MessengerHome home = (MessengerHome) ctx.lookup(MESSENGERBEAN_JNDI);
        MessengerObject messenger = home.create();

        String msg1 = "Hello World";
        messenger.sendMessage(msg1, REPS);
        int received = messenger.receiveMessage(10000, REPS);
        assertEquals(REPS, received);

Examples of org.codehaus.activemq.transport.TransportChannelFactory.create()

        TransportChannel transportChannel = null;
        boolean embedServer = isUseEmbeddedBroker() || factory.requiresEmbeddedBroker();
        if (embedServer) {
            synchronized (this) {
                if (factory.requiresEmbeddedBroker()) {
                    transportChannel = factory.create(getWireFormat(), uri);
                    brokerConnector = transportChannel.getEmbeddedBrokerConnector();
                }
                if (brokerConnector == null) {
                    brokerConnector = brokerContext.getConnectorByURL(theURLString);
                    if (brokerConnector == null) {

Examples of org.codehaus.preon.CodecFactory.create()

                && metadata.isAnnotationPresent(BoundExplicitly.class)) {
            BoundExplicitly settings = metadata
                    .getAnnotation(BoundExplicitly.class);
            try {
                CodecFactory factory = settings.factory().newInstance();
                return factory.create(metadata, type, null);
            } catch (InstantiationException e) {
                throw new CodecConstructionException(
                        "Failed to construct Codec using "
                                + settings.factory().getName());
            } catch (IllegalAccessException e) {

Examples of org.codehaus.preon.CodecSelectorFactory.create()

        replay(context, codec1, codec2, resolver, bitBuffer);
        CodecSelectorFactory factory = new TypePrefixSelectorFactory();
        List<Codec<?>> codecs = new ArrayList<Codec<?>>();
        codecs.add(codec1);
        codecs.add(codec2);
        CodecSelector selector = factory.create(context, codecs);
        selector.select(bitBuffer, resolver);
        verify(context, codec1, codec2, resolver, bitBuffer);
    }

    public void testPrefixesWithReferences() throws DecodingException {

Examples of org.codehaus.xfire.annotations.AnnotationServiceFactory.create()

    {
        super.setUp();
        AnnotationServiceFactory asf = new AnnotationServiceFactory(new Jsr181WebAnnotations(),
                                                                    getXFire().getTransportManager(),
                                                                    new AegisBindingProvider(new JaxbTypeRegistry()));
        service = asf.create(SendMessageImpl.class);
        server = new SendMessageImpl();
        service.setInvoker(new BeanInvoker(server));
       
        getServiceRegistry().register(service);
    }

Examples of org.codehaus.xfire.client.XFireProxyFactory.create()

    public void testClient()
        throws Exception
    {
        XFireProxyFactory xpf = getXFireProxyFactory();
        MultipleOutService client = (MultipleOutService) xpf.create(service, "xfire.local://MultipleOutService");
       
        Holder out = new Holder();
        Holder headerOut = new Holder();
        String response = client.echo("Yo Yo", out, headerOut);
       

Examples of org.codehaus.xfire.jaxb2.JaxbServiceFactory.create()

public class CollectionTest extends AbstractXFireAegisTest {

  public void testWSDL() throws Exception {
    JaxbServiceFactory sf = new JaxbServiceFactory();
   
    Service service = sf.create(CollectionServiceImpl.class, "CollectionService", null, null);
    getServiceRegistry().register(service);
   
    service.addOutHandler(new LoggingHandler());
    service.addOutHandler(new DOMOutHandler());
   
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.