<commit_before>package org.apache.polygene.library.restlet;

import org.apache.polygene.api.activation.ActivationException;
import org.apache.polygene.api.activation.PassivationException;
import org.apache.polygene.api.composite.TransientBuilderFactory;
import org.apache.polygene.api.object.ObjectFactory;
import org.apache.polygene.api.service.ServiceFinder;
import org.apache.polygene.api.structure.Application;
import org.apache.polygene.api.structure.Module;
import org.apache.polygene.api.unitofwork.UnitOfWorkFactory;
import org.apache.polygene.api.value.ValueBuilderFactory;
import org.apache.polygene.bootstrap.AssemblyException;
import org.apache.polygene.bootstrap.layered.LayeredApplicationAssembler;

@SuppressWarnings( "WeakerAccess" )
public abstract class PolygeneRestApplicationLauncher
{
    protected org.apache.polygene.api.structure.Application polygeneApplication;
    protected ServiceFinder serviceFinder;
    protected ObjectFactory objectFactory;
    protected TransientBuilderFactory transientBuilderFactory;
    protected UnitOfWorkFactory unitOfWorkFactory;
    protected ValueBuilderFactory valueBuilderFactory;
    protected Module entryModule;

    protected void initialize()
        throws ActivationException
    {
        polygeneApplication = createApplication();
        activateApplication();
        entryModule = polygeneApplication.findModule( entryLayer(), entryModule() );
        serviceFinder = entryModule;
        objectFactory = entryModule;
        transientBuilderFactory = entryModule;
        unitOfWorkFactory = entryModule.unitOfWorkFactory();
        valueBuilderFactory = entryModule;
    }<commit_msg>initialize () method needsto be accessible.<commit_after>package org.apache.polygene.library.restlet;

import org.apache.polygene.api.activation.ActivationException;
import org.apache.polygene.api.activation.PassivationException;
import org.apache.polygene.api.composite.TransientBuilderFactory;
import org.apache.polygene.api.object.ObjectFactory;
import org.apache.polygene.api.service.ServiceFinder;
import org.apache.polygene.api.structure.Application;
import org.apache.polygene.api.structure.Module;
import org.apache.polygene.api.unitofwork.UnitOfWorkFactory;
import org.apache.polygene.api.value.ValueBuilderFactory;
import org.apache.polygene.bootstrap.AssemblyException;
import org.apache.polygene.bootstrap.layered.LayeredApplicationAssembler;

@SuppressWarnings( "WeakerAccess" )
public abstract class PolygeneRestApplicationLauncher
{
    protected org.apache.polygene.api.structure.Application polygeneApplication;
    protected ServiceFinder serviceFinder;
    protected ObjectFactory objectFactory;
    protected TransientBuilderFactory transientBuilderFactory;
    protected UnitOfWorkFactory unitOfWorkFactory;
    protected ValueBuilderFactory valueBuilderFactory;
    protected Module entryModule;

    public void initialize()
        throws ActivationException
    {
        polygeneApplication = createApplication();
        activateApplication();
        entryModule = polygeneApplication.findModule( entryLayer(), entryModule() );
        serviceFinder = entryModule;
        objectFactory = entryModule;
        transientBuilderFactory = entryModule;
        unitOfWorkFactory = entryModule.unitOfWorkFactory();
        valueBuilderFactory = entryModule;
    }
{'fraction_non_alphanumeric': 0.07563527653213752, 'fraction_numerical': 0.0, 'mean_word_length': 5.254205607476636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4269802', 'n_tokens_mistral': 871, 'n_tokens_neox': 865, 'n_words': 150}