LibreOffice Module cppuhelper (master) 1
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
cppuhelper::ServiceManager::Data::Implementation Struct Reference

#include <servicemanager.hxx>

Public Types

enum  Status {
  STATUS_NEW ,
  STATUS_WRAPPER ,
  STATUS_LOADED
}
 

Public Member Functions

 Implementation (OUString theName, OUString theLoader, OUString theUri, OUString theEnvironment, OUString theConstructorName, OUString thePrefix, bool theIsSingleInstance, css::uno::Reference< css::uno::XComponentContext > theAlienContext, OUString theRdbFile)
 
 Implementation (OUString theName, css::uno::Reference< css::lang::XSingleComponentFactory > const &theFactory1, css::uno::Reference< css::lang::XSingleServiceFactory > const &theFactory2, css::uno::Reference< css::lang::XComponent > theComponent)
 
 Implementation (const Implementation &)=delete
 
const Implementationoperator= (const Implementation &)=delete
 
css::uno::Reference< css::uno::XInterface > createInstance (css::uno::Reference< css::uno::XComponentContext > const &context, bool singletonRequest)
 
css::uno::Reference< css::uno::XInterface > createInstanceWithArguments (css::uno::Reference< css::uno::XComponentContext > const &context, bool singletonRequest, css::uno::Sequence< css::uno::Any > const &arguments)
 
bool shallDispose () const
 

Public Attributes

OUString name
 
OUString loader
 
OUString uri
 
OUString environment
 
OUString constructorName
 
OUString prefix
 
bool isSingleInstance
 
css::uno::Reference< css::uno::XComponentContext > alienContext
 
OUString rdbFile
 
std::vector< OUString > services
 
std::vector< OUString > singletons
 
WrapperConstructorFn constructorFn
 
css::uno::Reference< css::lang::XSingleComponentFactory > factory1
 
css::uno::Reference< css::lang::XSingleServiceFactory > factory2
 
css::uno::Reference< css::lang::XComponent > component
 
Status status
 
std::mutex mutex
 
css::uno::Reference< css::uno::XInterface > singleInstance
 
css::uno::Reference< css::lang::XComponent > disposeInstance
 
bool dispose
 

Private Member Functions

css::uno::Reference< css::uno::XInterface > doCreateInstance (css::uno::Reference< css::uno::XComponentContext > const &context)
 
css::uno::Reference< css::uno::XInterface > doCreateInstanceWithArguments (css::uno::Reference< css::uno::XComponentContext > const &context, css::uno::Sequence< css::uno::Any > const &arguments)
 
void updateDisposeInstance (bool singletonRequest, css::uno::Reference< css::uno::XInterface > const &instance)
 

Detailed Description

Definition at line 72 of file servicemanager.hxx.

Member Enumeration Documentation

◆ Status

Enumerator
STATUS_NEW 
STATUS_WRAPPER 
STATUS_LOADED 

Definition at line 117 of file servicemanager.hxx.

Constructor & Destructor Documentation

◆ Implementation() [1/3]

cppuhelper::ServiceManager::Data::Implementation::Implementation ( OUString  theName,
OUString  theLoader,
OUString  theUri,
OUString  theEnvironment,
OUString  theConstructorName,
OUString  thePrefix,
bool  theIsSingleInstance,
css::uno::Reference< css::uno::XComponentContext >  theAlienContext,
OUString  theRdbFile 
)
inline

Definition at line 73 of file servicemanager.hxx.

◆ Implementation() [2/3]

cppuhelper::ServiceManager::Data::Implementation::Implementation ( OUString  theName,
css::uno::Reference< css::lang::XSingleComponentFactory > const &  theFactory1,
css::uno::Reference< css::lang::XSingleServiceFactory > const &  theFactory2,
css::uno::Reference< css::lang::XComponent >  theComponent 
)
inline

Definition at line 88 of file servicemanager.hxx.

◆ Implementation() [3/3]

cppuhelper::ServiceManager::Data::Implementation::Implementation ( const Implementation )
delete

Member Function Documentation

◆ createInstance()

css::uno::Reference< css::uno::XInterface > cppuhelper::ServiceManager::Data::Implementation::createInstance ( css::uno::Reference< css::uno::XComponentContext > const &  context,
bool  singletonRequest 
)

◆ createInstanceWithArguments()

css::uno::Reference< css::uno::XInterface > cppuhelper::ServiceManager::Data::Implementation::createInstanceWithArguments ( css::uno::Reference< css::uno::XComponentContext > const &  context,
bool  singletonRequest,
css::uno::Sequence< css::uno::Any > const &  arguments 
)

Definition at line 682 of file servicemanager.cxx.

References mutex.

◆ doCreateInstance()

css::uno::Reference< css::uno::XInterface > cppuhelper::ServiceManager::Data::Implementation::doCreateInstance ( css::uno::Reference< css::uno::XComponentContext > const &  context)
private

Definition at line 701 of file servicemanager.cxx.

Referenced by createInstance().

◆ doCreateInstanceWithArguments()

css::uno::Reference< css::uno::XInterface > cppuhelper::ServiceManager::Data::Implementation::doCreateInstanceWithArguments ( css::uno::Reference< css::uno::XComponentContext > const &  context,
css::uno::Sequence< css::uno::Any > const &  arguments 
)
private

Definition at line 717 of file servicemanager.cxx.

References cppuhelper::ServiceManager::init().

◆ operator=()

const Implementation & cppuhelper::ServiceManager::Data::Implementation::operator= ( const Implementation )
delete

◆ shallDispose()

bool cppuhelper::ServiceManager::Data::Implementation::shallDispose ( ) const
inline

Definition at line 115 of file servicemanager.hxx.

References isSingleInstance, and singletons.

◆ updateDisposeInstance()

void cppuhelper::ServiceManager::Data::Implementation::updateDisposeInstance ( bool  singletonRequest,
css::uno::Reference< css::uno::XInterface > const &  instance 
)
private

Definition at line 744 of file servicemanager.cxx.

References comp, cppuhelper::WeakComponentImplHelper2< Ifc >::dispose(), and mutex.

Referenced by createInstance().

Member Data Documentation

◆ alienContext

css::uno::Reference< css::uno::XComponentContext > cppuhelper::ServiceManager::Data::Implementation::alienContext

Definition at line 137 of file servicemanager.hxx.

◆ component

css::uno::Reference< css::lang::XComponent > cppuhelper::ServiceManager::Data::Implementation::component

Definition at line 144 of file servicemanager.hxx.

◆ constructorFn

WrapperConstructorFn cppuhelper::ServiceManager::Data::Implementation::constructorFn

Definition at line 141 of file servicemanager.hxx.

◆ constructorName

OUString cppuhelper::ServiceManager::Data::Implementation::constructorName

Definition at line 134 of file servicemanager.hxx.

◆ dispose

bool cppuhelper::ServiceManager::Data::Implementation::dispose

Definition at line 150 of file servicemanager.hxx.

◆ disposeInstance

css::uno::Reference< css::lang::XComponent > cppuhelper::ServiceManager::Data::Implementation::disposeInstance

Definition at line 149 of file servicemanager.hxx.

◆ environment

OUString cppuhelper::ServiceManager::Data::Implementation::environment

Definition at line 133 of file servicemanager.hxx.

◆ factory1

css::uno::Reference< css::lang::XSingleComponentFactory > cppuhelper::ServiceManager::Data::Implementation::factory1

Definition at line 142 of file servicemanager.hxx.

◆ factory2

css::uno::Reference< css::lang::XSingleServiceFactory > cppuhelper::ServiceManager::Data::Implementation::factory2

Definition at line 143 of file servicemanager.hxx.

◆ isSingleInstance

bool cppuhelper::ServiceManager::Data::Implementation::isSingleInstance

Definition at line 136 of file servicemanager.hxx.

Referenced by createInstance(), and shallDispose().

◆ loader

OUString cppuhelper::ServiceManager::Data::Implementation::loader

Definition at line 131 of file servicemanager.hxx.

◆ mutex

std::mutex cppuhelper::ServiceManager::Data::Implementation::mutex

Definition at line 147 of file servicemanager.hxx.

Referenced by createInstance().

◆ name

OUString cppuhelper::ServiceManager::Data::Implementation::name

Definition at line 130 of file servicemanager.hxx.

◆ prefix

OUString cppuhelper::ServiceManager::Data::Implementation::prefix

Definition at line 135 of file servicemanager.hxx.

◆ rdbFile

OUString cppuhelper::ServiceManager::Data::Implementation::rdbFile

Definition at line 138 of file servicemanager.hxx.

◆ services

std::vector< OUString > cppuhelper::ServiceManager::Data::Implementation::services

Definition at line 139 of file servicemanager.hxx.

◆ singleInstance

css::uno::Reference<css::uno::XInterface> cppuhelper::ServiceManager::Data::Implementation::singleInstance

Definition at line 148 of file servicemanager.hxx.

Referenced by createInstance().

◆ singletons

std::vector< OUString > cppuhelper::ServiceManager::Data::Implementation::singletons

Definition at line 140 of file servicemanager.hxx.

Referenced by shallDispose().

◆ status

Status cppuhelper::ServiceManager::Data::Implementation::status

Definition at line 145 of file servicemanager.hxx.

◆ uri

OUString cppuhelper::ServiceManager::Data::Implementation::uri

Definition at line 132 of file servicemanager.hxx.


The documentation for this struct was generated from the following files: