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 const &theName, OUString const &theLoader, OUString const &theUri, OUString const &theEnvironment, OUString const &theConstructorName, OUString const &thePrefix, bool theIsSingleInstance, css::uno::Reference< css::uno::XComponentContext > const &theAlienContext, OUString const &theRdbFile)
 
 Implementation (OUString const &theName, css::uno::Reference< css::lang::XSingleComponentFactory > const &theFactory1, css::uno::Reference< css::lang::XSingleServiceFactory > const &theFactory2, css::uno::Reference< css::lang::XComponent > const &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
 
osl::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 71 of file servicemanager.hxx.

Member Enumeration Documentation

Enumerator
STATUS_NEW 
STATUS_WRAPPER 
STATUS_LOADED 

Definition at line 118 of file servicemanager.hxx.

Constructor & Destructor Documentation

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

Definition at line 72 of file servicemanager.hxx.

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

Definition at line 88 of file servicemanager.hxx.

References assert().

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

Member Function Documentation

css::uno::Reference< css::uno::XInterface > cppuhelper::ServiceManager::Data::Implementation::createInstance ( css::uno::Reference< css::uno::XComponentContext > const &  context,
bool  singletonRequest 
)
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 678 of file servicemanager.cxx.

References mutex.

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

Definition at line 697 of file servicemanager.cxx.

References assert().

Referenced by createInstance().

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 713 of file servicemanager.cxx.

References assert(), and cppuhelper::ServiceManager::init().

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

Definition at line 116 of file servicemanager.hxx.

References isSingleInstance, and singletons.

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

Definition at line 740 of file servicemanager.cxx.

References comp, dispose(), and mutex.

Referenced by createInstance().

Member Data Documentation

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

Definition at line 138 of file servicemanager.hxx.

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

Definition at line 145 of file servicemanager.hxx.

WrapperConstructorFn cppuhelper::ServiceManager::Data::Implementation::constructorFn
OUString cppuhelper::ServiceManager::Data::Implementation::constructorName

Definition at line 135 of file servicemanager.hxx.

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

Definition at line 151 of file servicemanager.hxx.

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

Definition at line 150 of file servicemanager.hxx.

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

Definition at line 134 of file servicemanager.hxx.

css::uno::Reference< css::lang::XSingleComponentFactory > cppuhelper::ServiceManager::Data::Implementation::factory1
css::uno::Reference< css::lang::XSingleServiceFactory > cppuhelper::ServiceManager::Data::Implementation::factory2
bool cppuhelper::ServiceManager::Data::Implementation::isSingleInstance

Definition at line 137 of file servicemanager.hxx.

Referenced by createInstance(), and shallDispose().

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

Definition at line 132 of file servicemanager.hxx.

osl::Mutex cppuhelper::ServiceManager::Data::Implementation::mutex

Definition at line 148 of file servicemanager.hxx.

Referenced by createInstance().

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

Definition at line 131 of file servicemanager.hxx.

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

Definition at line 136 of file servicemanager.hxx.

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

Definition at line 139 of file servicemanager.hxx.

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

Definition at line 140 of file servicemanager.hxx.

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

Definition at line 149 of file servicemanager.hxx.

Referenced by createInstance().

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

Definition at line 141 of file servicemanager.hxx.

Referenced by shallDispose().

Status cppuhelper::ServiceManager::Data::Implementation::status
OUString cppuhelper::ServiceManager::Data::Implementation::uri

Definition at line 133 of file servicemanager.hxx.


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